BLOG main image
for our next (37)
Dev (32)
Mac (1)
Windows (2)
FreeTalk (1)
Shell (1)
Private (0)
Visitors up to today!
Today hit, Yesterday hit
daisy rss
tistory 티스토리 가입하기!
'Dev'에 해당되는 글 32건
2010. 12. 22. 03:40
뭐가 호출될지 알 수 없다...

iPhone 에서 작성된 글입니다.

'Dev > iOS' 카테고리의 다른 글

App 안에 Store Link 달기  (0) 2011.01.10
[Xcode] Build and Archive  (1) 2010.12.22
xcode weak framework  (0) 2010.12.22
Uninstalling Xcode Developer Tools  (0) 2010.12.21
UIImage to bytes  (0) 2010.11.16
2010. 12. 22. 03:38
project->build settings->general->...

이제안잊어먹겠지...

iPhone 에서 작성된 글입니다.

'Dev > iOS' 카테고리의 다른 글

[Xcode] Build and Archive  (1) 2010.12.22
objective C category 내 동일한 함수들  (0) 2010.12.22
Uninstalling Xcode Developer Tools  (0) 2010.12.21
UIImage to bytes  (0) 2010.11.16
Base SDK Missing  (0) 2010.09.09
2010. 12. 21. 14:19

Uninstalling Xcode Developer Tools

To uninstall Xcode developer tools on the boot volume along with the directory, from a Terminal window type:

$ sudo <Xcode>/Library/uninstall-devtools -mode=all

To remove the underlying developer content on the boot volume, but leave the directory and supporting files untouched, from a Terminal window type:

$ sudo <Xcode>/Library/uninstall-devtools --mode=systemsupport

To just remove the UNIX development support on the boot volume, but leave the directory and supporting files untouched, from a Terminal window type:

$ sudo <Xcode>/Library/uninstall-devtools --mode=unixdev

Finally, to just uninstall the directory you can simply drag it to the trash, or from a Terminal window type:

$ sudo <Xcode>/Library/uninstall-devtools --mode=xcodedir

NOTE: The uninstaller that ships with previous versions of the Xcode developer tools will not clean everything off of your system properly. You should use the one installed with these Xcode developer tools.

'Dev > iOS' 카테고리의 다른 글

objective C category 내 동일한 함수들  (0) 2010.12.22
xcode weak framework  (0) 2010.12.22
UIImage to bytes  (0) 2010.11.16
Base SDK Missing  (0) 2010.09.09
Couldn't register ** with the bootstrap server. Error: unknown error code.  (0) 2010.09.07
2010. 12. 14. 00:58
Awake()에서 FindObjectOfType 로 오브젝트를 못 찾는 경우가 생겼다. 아직 찾아야할 오브젝트가 안만들어져서 그런것같다. Find 를 Start() 로 옮기면 만서 오케이..



iPhone 에서 작성된 글입니다.
2010. 11. 16. 13:46
//Converting UIImage to NSData
UIImage *image = [UIImage imageNamed: @"canning.png"];
NSData *imageData = UIImagePNGRepresentation(image);

//Converting NSData to Byte array
NSUInteger len = [imageData length];
Byte *byteData = (Byte*)malloc(len);
memcpy(byteData, [imageData bytes], len);

2010. 11. 9. 21:30
2010. 11. 2. 16:24
OpenFeint 에서 곧 픽스된 버전을 발표하겠지만 임시로 사용.

- Unity3D -
1. OFEditorIntegration.cs 안에 OpenFeintSettingsWizzard class 를 따로 파일을 만들어 생성.
2. OpenFeint/Set Application Initialization Settings... : setting 해주시고 apply.
3.AppController+OpenFeint.mm
- 코드 수정
extern bool gDidResignActive = false; ( 이건 extern 에 initialized 했다고 경고가 뜬다.흠..)
 // Give ourselves access to the OpenFeint Unity scripts via Mono.
NSString *path = [[[NSBundle mainBundle] bundlePath]
                      stringByAppendingPathComponent:@"Data/Managed/Assembly-CSharp-firstpass.dll"];

4. Build 하기 전에 꼭 xcode 를 종료.(build 하면 이것저것 추가됩.)

- XCode -
5. OpenFeint source add 해주시고.
6. build -> 수많은 error 가...--;

- error fix -
7. OpenFeint/OpenFeintSettings.h  code 추가.
extern const NSString* OpenFeintSettingInvertNotifications;

8. OpenFeint/api/internal/OpenFeint/OpenFeintSettings.mm code 추가
const NSString* OpenFeintSettingInvertNotifications = @"OpenFeintSettingInvertNotifications";

9. Frameworks 에 아래 framwwork 추가
GameKit.framework
AddressBook.framework
AddressBookUI.framework



== 성공 ==
ps. 수정된 unitypackage 첨부.(7, 8 번만 수동으로 해주면 됨)

'Dev > Unity3D' 카테고리의 다른 글

FindObjectOfType fail.  (0) 2010.12.14
Unity Script 와 Obejct-C 연동.  (0) 2010.11.09
OnGUI() 와 Garbage Collection  (0) 2010.10.08
Optimizing with Unity iPhone, the first three things I’ll do…  (0) 2010.09.16
Unity3D iPhone frame 변경  (2) 2010.09.06
2010. 10. 8. 11:38
OnGUI 호출시 내부에서 GC 가 호출되는데 그 타임에 CPU가 팍팍 튄다..
가급적 OnGUI 를 사용하지 말고 써드파티 GUI툴을 사용해야겠다.

참고 : http://forum.unity3d.com/threads/60217-Garbage-collector-spikes-because-of-GUI?highlight=garbage
2010. 9. 16. 17:30

1. Use InvokeRepeating()

MonoBehaviour.InvokeRepeating  

function InvokeRepeating (methodName : string, time : float, repeatRate : float) : void

Description

Invokes the method methodName in time seconds.

After the first invocation repeats calling that function every repeatRate seconds.


2. Force Garbage Collecting every some times
- System.GC.Collect()

3. Rendering stats
  • Stay under 7.5k tris
  • Stay under 20 draw calls
  • 'Dev > Unity3D' 카테고리의 다른 글

    FindObjectOfType fail.  (0) 2010.12.14
    Unity Script 와 Obejct-C 연동.  (0) 2010.11.09
    Unity3D 3.0 과 OpenFeint 2.7.4 연동  (4) 2010.11.02
    OnGUI() 와 Garbage Collection  (0) 2010.10.08
    Unity3D iPhone frame 변경  (2) 2010.09.06
    2010. 9. 9. 14:45
    Projet->Edit Project Setting
    - Device 선택.

    Project-> Edit Active Target "Unity-iPhone"
    - Device 선택..

    쿠쿠..