본문 바로가기
병렬 프로그램을 위한 어노테이션 병렬 프로그램을 위한 어노테이션 클래스 어노테이션 - @Immutable, @ThreadSafe, @NotThreadSafe. - @Immutable 어노테이션은 해당 클래스가 불변(immutable) 클래스임을 나타낸다. 자동적으로 @ThreadSafe 이기도 하다. - @NotThreadSafe 어노테이션은 해당 클래스가 스레드 안전성을 확보하지 못하고 있다는 의미이다. 스레드 안전성을 확보했다는 어노테이션을 달지 않은 모든 클래스는 당연하게 @NotThreadSafe 이기 때문에 꼭 사용해야만 하는 것은 아니다. 다만 한눈에 알아볼 수 있도록 하려면 @NotThreadSafe 어노테이션을 달아두는 편이 좋다. - 어노테이션은 상대적으로 방해되는 부분이 적으면서 클래스 사용자나 유지보수 담당자 모두에.. 2015. 7. 20.
[ios] How to link xib file to the view controller? ( xib 파일을 view controller 에 연결하는 방법 ) How to link xib file to the view controller? ( xib 파일을 view controller 에 연결하는 방법 ) xib 파일에서 file’s owner 를 선택한다.inspector 에서 3번째 tab 인 identity inspector 를 선택한다. Custom Class 에서 연결하고 싶은 view controller 의 이름을 설정하면 된다. custom class, file owner, How to link xib file to the view controller, identity inspector, inspector, IOS, TAB, view controller, XIB, xib 파일을 view controller 에 연결하는 방법, 설정, 이름 2015. 7. 4.
iOS Simulator Home 버튼이 보이지 않아요. iOS Simulator Home 버튼이 보이지 않아요. Xcode 4 버전대에서는 시뮬레이터 자체에 홈 버튼이 있었다고 하는데,Xcode 5 부터는 이게 사라진 것으로 보인다. 시뮬레이터의 홈 버튼 UI 는 사라졌지만Command + Shift + H 로 홈 버튼 클릭의 효과를 줄 수 있다. Multi tasking window 는 홈 버튼 더블클릭이 원래 아이폰의 명령어이기 때문에Command + Shift + H + H 를 하면 멀티테스크 윈도우로 이동한다. 요런것들이 사실 Menu 에 보면 대충 다 있기 때문에메뉴를 열심히 보는 습관을 길러야겠다. command shift h, iOS Simulator Home 버튼이 보이지 않아요., Menu, multitasking window, simulat.. 2015. 6. 30.
android 에서 "Read-only file system" 이라는 메세지가 나오며 file operation 이 안 되면... android 에서 "Read-only file system" 이라는 메세지가 나오며 file operation 이 안 되면... su ( super user ) 모드에서 다음 명령어를 수행하면 된다. mount -o rw,remount /system 작업을 마친 다음에는 아래 명령어로 원래 mode 로 바꿔준다 mount -o ro,remount /system Android, android 에서 "Read-only file system" 이라는 메세지가 나오며 file operation 이 안 되면..., file system, Mode, Mount, read-only, remount, rw, su, super user, System 2015. 6. 29.
Class Diagram 에 대한 구체적인 내용들. Class Diagram 에 대한 구체적인 내용들. 참조 : http://www.nextree.co.kr/p6753/ > - UML 에서 제공하는 기본 요소 외 추가적인 확장요소. - 으로 class 이름에 앞서 마킹한다. - 주로 사용되는 stereotype 은 , , , 등이 있다. - interface 의 경우 interface component 가 따로 있어 stereotype 을 사용하지 않아도 되며, abstract 의 경우도 stereotype 보다는 {abstract} 를 class 나 method 뒤에 붙이는 형태를 사용하는 것이 일반적이라고 한다. ( 일반적인지 검증 필요 ) > - abstract 메소드들은 italic 체로 표기하거나, {abstract} 를 class 이름 다음 혹.. 2015. 6. 28.
Android StrictMode Android StrictMode 출처http://code.tutsplus.com/tutorials/android-best-practices-strictmode--mobile-7581http://developer.android.com/reference/android/os/StrictMode.html - android strict mode 는 2가지 category 가 있다. 하나는 thread policy 이고 다른 하는 VM policy 이다. - Thread policy 는 다음과 같은 것들을 monitoring 한다. disk read disk write network access custom slow code - VM policy 는 다음과 같은 것들을 monitoring 한다. Leaked ac.. 2015. 6. 26.
@NotNull annotation 의 장점 @NotNull annotation 의 장점 http://robaustin.wikidot.com/annotations-and-notnullhttps://www.jetbrains.com/idea/documentation/howto.html - Find Bugs 와 IntelliJ 는 null check annotation 을 지원한다. 코드 가독성 측면에서 좋지 않다는 이야기도 있지만, 그건 케바케. - function 의 param 에 null 이 들어오면 RuntimeException 을 던지도록 처리하는 것이 좋다.public void testMethodNotNull( @NotNull String param ){ // do sth.}만약 method 선언부에 @NotNull 을 선언하면, valida.. 2015. 6. 23.
이클립스 실행시 Java was started but returned exit code=1 에러가 날때 이클립스 실행시 Java was started but returned exit code=1 에러가 날때 eclipse 폴더 에 있는 eclipse.ini 파일에 아래 구문을 추가해주자. -vmC:\Program Files\Java\jdk1.8.0_05\bin\javaw.exe eclipse, eclipse.ini, Java was started but returned exit code=1, vm, 이클립스 실행시 Java was started but returned exit code=1 에러가 날때 2015. 6. 23.
illegal configuration launch screens may not have connections illegal configuration launch screens may not have connections 위의 에러를 마딱뜨렸다면 당신은 아마도 LaunchScreen.xib 에 뭔가를 진행했을 것이다.LaunchScreen.xib 는 다른 목적으로 설계된 녀석으로( iOS8 & Xcode 6 에서 등장 ) 이 녀석 말고,무언가를 만들고 싶다면 새롭게 xib 를 만들어서 사용해야 한다. 기존에 LaunchScreen.xib 에 연결한 무언가는 다 끊어줘야 제대로 컴파일 된다. Configuration, Illegal, illegal configuration launch screens may not have connections, ios8, launch, launchscreen.xib, screens.. 2015. 6. 20.
반응형