본문 바로가기
[Objective-C] 메시지 송신 패턴 [Objective-C] 메시지 송신 패턴 출처 : OS X 구조를 이해하면서 배우는 Objective-C Chap 15. Notice : 정리자(돼지왕 왕돼지)가 remind 하고 싶은 내용이나 모르는 내용 기반으로 정리하는 것이기 때문에 구체적인 내용은 책을 사서 보시기를 권장드립니다. 15.1. 앱과 실행 반복 * 15.1.1. 실행 반복 -마우스 클릭 등의 이벤트를 OS에서 받아 그에 따른 처리를 하는 루틴 실행을 반복하는 부분이 있는데, 이것을 실행 반복(run loop) 또는 이벤트반복이라고 부른다. -GUI 를 갖춘 Cocoa 앱에서 실행 시작 이후에는 반드시 하나의 실행 반복이 시작된다.이것을 메인 실행 반복이라고 부른다.동시에 앱 동작과 리소스 관리를 하는 객체가 생성되는데, 이것이 Ma.. 2018. 1. 7.
[ios] Core Data Revert / Rollback / Undo [ios] Core Data Revert / Rollback / Undo -CoreData 의 자료들을 다루다가 rollback 을 하고 싶다면 여러 가지 방법이 있다. -[managedObjectContext rollback]; 이 녀석은 지금까지 반영된 & save 되지 않은 모든 변경사항을 되돌린다. -[managedObjectContext undo]; 이 녀석은 가장 최근에 행해진 작업을 되돌리는 역할을 한다.이 녀석과 페어를 이루는 것은 redo -[managedObjectContext refreshObject:object mergeChanges:NO]; 이 녀석은 해당 managedObject 에 대해 변경사항을 버리고 현재 store 에 있는 자료로 reload 한다.mergeChanges .. 2017. 12. 11.
[ios/tutorial] Core Data - Creating and Modifying Custom Managed Objects [ios/tutorial] Core Data - Creating and Modifying Custom Managed Objects https://developer.apple.com/library/watchos/documentation/Cocoa/Conceptual/CoreData/LifeofaManagedObject.html#//apple_ref/doc/uid/TP40001075-CH16-SW1-NSManagedObject 는 generic class 이다. Creating Custom Managed Object Subclasses -@interface MyManagedObject : NSManagedObject @property (nonatomic, strong) NSString *title;@prop.. 2017. 11. 5.
[ios/tutorial] Core Data - Initializing the Core Data Stack [ios/tutorial] Core Data - Initializing the Core Data Stack https://developer.apple.com/library/watchos/documentation/Cocoa/Conceptual/CoreData/InitializingtheCoreDataStack.html#//apple_ref/doc/uid/TP40001075-CH4-SW1 -Core data stack 은 core data 를 초기화하고, external data store 와 app 사이를 중재하는 역할을 하는 framework 집합을 이야기한다. -stack 은 다음 세 가지로 구성된다. NSManagedObjectContextNSPersistentStoreCoordinatorNSMana.. 2017. 11. 3.
[ios/tutorial] Core Data - Creating a Managed Object Model [ios/tutorial] Core Data - Creating a Managed Object Model https://developer.apple.com/library/watchos/documentation/Cocoa/Conceptual/CoreData/KeyConcepts.html#//apple_ref/doc/uid/TP40001075-CH30-SW1 -model layer 를 관리하는 framework를 core data 라고 부른다.많은 것을 자동화시켜서 제공한다. -Core data 의 schema 는 managed object model 로 mapping 된다. ( NSManagedObjectModel )이 model 은 소위 table 이라고 부르는 entity 들의 집합이다. Creatin.. 2017. 11. 2.
[vi] shortcut for undo and redo [vi] shortcut for undo and redo u (undo) : undoCtrl + R : redo Redo, undo, vi shortcut, [vi] shortcut for undo and redo 2017. 7. 5.
most frequently used vim shortcuts ( 가장 자주 쓰이는 vim 단축키 모음 ) most frequently used vim shortcuts ( 가장 자주 쓰이는 vim 단축키 모음 ) V : line selectionv : selection start ( move cursor to select )d : cut ( after selection )p : pastey : copy ( after selection ) Ctrl + D : page downCtrl + U : page up :g* [keyword] : find ( look up )^ : first char(non-white space) of the line. u : undoCtrl + R : redo o : insert new line below :%s /find_word/replace_word/g %s, :%s /find_.. 2013. 12. 19.
[git] Git Tutorial ( 기초 강좌 ) - 기본 사용 마스터. Git Tutorial ( 기초 강좌 ) - 기본 사용 마스터. Git 시작 git 설정 파일들 - /etc/gitconfig : 시스템의 모든 사용자와 저장소에 적용되는 설정. 아래 명령어로 접근 $ git config --system - ~/.gitconfig : 특정 사용자에게만 적용되는 설정. 아래 명령어로 접근 $ git config --global - .git/config : git directory 에 있고, 특정 저장소( 현재 작업중인 프로젝트 )에만 적용된다. 아래 명령어로 접근한다. config 적용의 priority 는 local > global > system 이다. $ git config --local - 아래 명령어로 설정 내용을 확인할 수 있다. 여러개의 설정 파일들이 있기 때.. 2012. 11. 10.
반응형