Dev/iOS2012. 4. 9. 23:20

너무 어이가 없어서 블로그에 남깁니다.

회사 동료가 스노우 레오파드(snow leopard) OS 에 XCode 4.2 를 설치하려고 했으나, 계속해서 알 수 없는 원인으로 설치 실패가 발생 했습니다.

구 버전들을 삭제하고 재설치 했으나, 여전히 같은 증상.

결국 해결 방법을 찾았는데

방법은 현재 OS의 날짜를 2012년 1월 이전 으로 설정하면 정상적으로 설치가 됩니다.

OS, XCode 버전 올리게 할려고 별 짓을 다하는군요.

출처 : http://stackoverflow.com/questions/9964528/xcode-installation-failed

Posted by 놀란
Dev/C#2012. 3. 23. 21:38

정적 메소드(Static Method)는 클래스의 인스턴스를 생성하지 않아도 호출이 가능한 메소드를 말한다. 정적 메소드는 static 키워드를 이용해서 선언한다.



인스턴스 메소드(Instance Method)는 이름처럼 클래스의 인스턴스를 생성해야만 호출할 수 있는 메소드를 말한다. 


Posted by 놀란
Dev/Unity3D2012. 3. 16. 12:25

PLATFORM 종류

UNITY_EDITOR Define for calling Unity Editor scripts from your game code.
UNITY_STANDALONE_OSX Platform define for compiling/executing code specifically for Mac OS (This includes Universal, PPC and Intel architectures).
UNITY_DASHBOARD_WIDGET Platform define when creating code for Mac OS dashboard widgets.
UNITY_STANDALONE_WIN Use this when you want to compile/execute code for Windows stand alone applications.
UNITY_WEBPLAYER Platform define for web player content (this includes Windows and Mac Web player executables).
UNITY_WII Platform define for compiling/executing code for the Wii console.
UNITY_IPHONE Platform define for compiling/executing code for the iPhone platform.
UNITY_ANDROID Platform define for the Android platform.
UNITY_PS3 Platform define for running Play Station 3 code.
UNITY_XBOX360 Platform define for executing XBbox 360 code.
UNITY_NACL Platform define when compiling code for Google native client (this will be set additionally to UNITY_WEBPLAYER).
UNITY_FLASH Platform define when compiling code for Adobe Flash.


UNITY 버전 

UNITY_2_6 Platform define for the major version of Unity 2.6.
UNITY_2_6_1 Platform define for specific version 1 from the major release 2.6.
UNITY_3_0 Platform define for the major version of Unity 3.0.
UNITY_3_0_0 Platform define for the specific version 0 of Unity 3.0.
UNITY_3_1 Platform define for major version of Unity 3.1.
UNITY_3_2 Platform define for major version of Unity 3.2.
UNITY_3_3 Platform define for major version of Unity 3.3.
UNITY_3_4 Platform define for major version of Unity 3.4.
UNITY_3_5 Platform define for major version of Unity 3.5.

TEST CODE

C# Example: JavaScript Example:


Posted by 놀란
Dev 기타2012. 3. 15. 19:15

windows 에서는 탐색기를 통해서 동일한 디렉토리를 옮길 경우, 병합(merge)가 되지만 맥에서는 병합이 아닌 대치(replace) 가 됩니다.

삽질에 삽질을 경험한 뒤에 처리한 결과는 command 창에서 명령어로 copy 해줬습니다.


cp -Rf source_dir/* dest_dir


-R 옵션은 재귀적으로 subdirectory 의 내용을 모두 복사하는 옵션이고,

-f 옵션은 중복된 파일이 있을 경우, 덮어쓰기 하라는 옵셥입니다.


Posted by 놀란
Dev/iOS2012. 3. 8. 17:18

view 페이지가 아닌 소스 상에서 현재 윈도우나 뷰를 가져올 일이 생길 때 사용해야함.


현재 어플리케이션의 윈도우 가져오기

UIWindow *window = [[UIApplication sharedApplication] keyWindow];


현재 어플리케이션의 VIEW 가져오기 (index 번호로 VIEW 선택)

UIView *view = [[[[UIApplication sharedApplication] keyWindow] subviews] objectAtIndex:0];



Posted by 놀란
Dev/Android2012. 2. 21. 16:07

샘플 프로젝트를 만들어서 run 을 실행시켰음에도 이런 에러가 발생할 경우에는

rm ~/.android/debug.keystore (Linux or Mac Os X) 으로 삭제해주고 다시 빌드하면 됩니다.

Windows 경우에는 C:\Users\Administrator\.android 폴더 를 지우면 됩니다.

Windows 는 각자 자신의 계정 아래입니다.


출처: http://stackoverflow.com/questions/4954316/your-project-contains-errors-please-fix-it-before-running-it


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

[android] 안드로이드 4가지 구성요소  (0) 2012.02.20
Posted by 놀란
Dev 기타2012. 2. 21. 11:40

Mac terminal 에서 crontab 사용을 위해 crontab -e 실행하고 저장할 때,

crontab: temp file must be edited in place 이라는 메세지가 나타나면서 저장이 안되는 현상이 발생.

이를 해결하기 위해서는 crontab -e 로 열고나서 설정을 바꿔줘야 함.

:set nobackup 

설정하고 나서 저장하면 정상적으로 저장이 됩니다.


Posted by 놀란
Dev/Android2012. 2. 20. 14:35

안드로이드 응용 프로그램은 적절한 권한만 있으면 누구든지 인스턴스화 할 수 있는 4개의 컴포넌트로 구성된다.

    1. 액티비티(activity) - 사용자 인터페이스를 구성하는 기본 단위. 윈도우와 유사한 개념으로 생각하되 정확하게 같지는 않으며 윈도우보다는 더 큰 개념. 눈에 보이는 화면 하나가 액티비티이며 여러개의 뷰들로 구성됨. 응용 프로그램은 필요한 만큼의 액티비티를 가질 수 있으며 그 중 어떤 것을 먼저 띄울지를 지정한다.
    2. 서비스(service) - UI가 없어 사용자 눈에 직접적으로 보이지 않으며 백그라운드에서 무한히 실행되는 컴포넌트이다. (ex - mp3 player, 네트워크 감시 등)
    3. 방송 수신자(Broadcast Receiver) - 시스템으로부터 전달되는 방송을 대기하고 신호 전달시 수신하는 역할을 한다. (ex - 배터리 떨어짐, 사진 찍음, 네트워크 전송 완료 등의 신호) 신호만 대기할 뿐 UI를 따로 가지지는 않으므로 방송 수신시 방송의 의미를 해석하고 적절한 액티비티(activity)를 띄우는 역할을 한다.
    4. 콘텐트 제공자(Content Provider) - 다른 응용 프로그램을 위해 자신의 데이터를 제공함. 응용프로그램 간에 데이터를 공유할 수 있는 합법적인 유일한 장치. (ex - database (주소록 등))


출처: 안드로이드 프로그래밍 정복(한빛 미디어)

Posted by 놀란
Dev/iOS2011. 12. 14. 16:18


NSDate *startTime = [NSDate date];


[~~~ 작업 내용];;;;

    

NSDate *endTime = [NSDate date];


NSLog(@"Completed in %f seconds", [endTime timeIntervalSinceDate:startTime]);



Posted by 놀란
Dev/iOS2011. 10. 26. 15:28

Project -> Build Settings -> Apple LLVM compiler 3.0 - Language

Objective-C Automatic Reference Counting

옵션 YES-NO 설정 값 바꾸면 됩니다.

찾느라 고생했네요. ㅠㅠ

Posted by 놀란