9. Data in Your iPhone App (February 2, 2010) 1:15:47 10. 2. 6. Chris Marcellino Stanford Software engineering, application development, programming language, computer science, iPhone operating system, OS 3.2, iPad, core data, local data, property lists, disk storage, XML, binary, array, dictionary, file system, mutability, security, privacy,
중 59'에 NSUserDefaults 얘기를 잠깐 언급한다.
NSUserDefaults가 결국 property list를 쓰는 거네.
Resource > settings bundle 을 만들 수 있다. 그럼 설정에서도 볼 수 있다.



추가로 internationalization
비슷하게 resource를 쓰는 거니까.

iPhone Development Foundation Videos
Session 374 - Internationalizing Your Software 1:02:42 08. 6. 13. Apple Developer Developer on iTunes
17'까지는 unicode에 대해서 자세히 가르쳐준다. 
13' 에는 "김"을 예로 드는데, “김정일”의 김이라고 알려준다. 역시 김정일이 세계에서 제일 유명한 조선인.
17'부터는 NSString 설명 간단히.
wchar_t는 mac에서는 다른 데서와 달리 16 bit 이 아니다.
.strings files를 쓸 때는 UTF-16 을 써야 한다.
26' 에는 bundles 간단히 설명 lproj =< language project
30' locale
이건 오래된 거니까 보지 말고,

WWDC 2010 Session Videos - HD


iPhone Application Development (Winter 2010) http://deimos3.apple.com/WebObjects/Core.woa/Feed/itunes.stanford.edu-dz.4331559337.04331559339
18. Unit Testing; Fun with Objective-C; Localization (March 4, 2010) 1:16:41 10. 3. 11. Josh Shaffer Stanford Software engineering, application development, programming language, computer science, iPhone operating system, OS 3.2, iPad, SDK, test, QA, quality assurance, syntax, semantics, frameworks, bugs, OCUnit, SenTestCase, subset of behavior, runtime, objc.h,



 

by 언제나19 2011. 11. 25. 17:06

block을 callback으로 쓰기 위해서 video로 다시 배워본다.

WWDC 2010 Session Videos - HD
Session 206 - Introducing Blocks and Grand Central Dispatch on iPhone 49:52 10. 6. 16. Apple Developer Developer on iTunes

이 때 말하기로는 blocks가 c++, objective c++ 에서 아직은 덜 지원되고 있다고 하네. 지금은 어떤지 모르겠다.

lambda calculus 가능.
block은 objective c object.

automatic reference counting이 잘 되려나 모르겠네. 

[block copy]  는 다시 봐도 어렵다.
objective c garbage collection session에서 더 자세히 가르쳐준다. 

18' 부터는 grand central dispatch 설명. 

twitter 내용 list에서 image를 비동기로 update하는 걸 dispatch_async( , ^{ }) 를 통해서 쉽게 처리할 수 있다.
이거 알아둬야겠다. 

WWDC 2011 Session Videos - HD
Session 308 - Blocks and Grand Central Dispatch in Practice 45:03 11. 6. 16. Apple Developer Developer on iTunes
는 지난 번에 봤었는데, 이해를 잘 못했었다.


다시 보니, 좀 낫다.
function과 block을 바로 옆에 두고 비교해가면서 설명해주니 좋다.
__block int cnt = 0; 도 block 안으로 쉽게 넘길 수 있다. 대신 memory management에는 신경써야 한다.

12' 부터는 또 grand central dispatch
중간에 dispatch_apply, dispatch_async 를 설명하는 부분은 집중하지 않았다. 나중에 필요할 때 봐야지.

34' 부터 다시 block memory management
Block_copy() 못알아듣겠다.
[obj setHandler: ^{ [obj doSomething]; }]; 라고 쓰면 retain cycle이 생기니까
__block NSThingy *tmp = obj;
[obj setHandler: ^[tmp doSomething]; }];
로 바꿔 쓰래. 어려워 -0-; Block_copy 를 안쓸 꺼면 신경쓰지 않아도 되나?

related sessions가
simplifying iphone app development with grand central dispatch
working effectively with objective-c on iphone os
advanced objective-c and garbage collection techniques
라는데, wwdc2010 에서 찾을 수가 없다.

block 포함 gcd 관련 list

WWDC 2010 Session Videos - HD
Session 206 - Introducing Blocks and Grand Central Dispatch on iPhone 49:52 10. 6. 16. Apple Developer Developer on iTunes
Session 211 - Simplifying iPhone App Development with Grand Central Dispatch 54:03 10. 6. 16. Apple Developer Developer on iTunes

WWDC 2011 Session Videos - HD
Session 308 - Blocks and Grand Central Dispatch in Practice 45:03 11. 6. 16. Apple Developer Developer on iTunes
Session 210 - Mastering Grand Central Dispatch 42:48 11. 6. 16. Apple Developer Developer on iTunes

 
by 언제나19 2011. 11. 12. 18:43

WWDC 2011 Session Videos - HD 에서 autolayout 얘기 보기.

Session 302 - Using Interface builder in Xcode 4 53:44 11. 6. 16. Apple Developer Developer on iTunes
에서 auto layout 소개를 조금 들었었다. 
2011/09/16 17:05 쯤.

Session 103 - Cocoa Autolayout 59:16 11. 6. 16. Apple Developer Developer on iTunes
를 꼭 봐야 했었네.

interface builder로 조작도 가능하면서도,
in-code layout도 가능하다.

guide:
http://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/AutolayoutPG/Articles/Introduction.html

이런 거 꼭 필요하다~.
autolayout으로 안된다면, 비슷한 걸 만들어야겠다.

springs and struts에서 이미 있는 개념인가보네.

핵심은 NSLayoutConstraint를 지정해둘 수 있고,
이 constraints가 실행 시간에 적용이 된다는 것.

controller가 layout에 대해서 모르게 하고 싶다. 나도!

헉, 그런데, ios에서 지원이 안되나보다.
http://developer.apple.com/library/mac/#documentation/AppKit/Reference/NSLayoutConstraint_Class/NSLayoutConstraint/NSLayoutConstraint.html
가 mac에서만 지원이 되네.

언젠가 ios에도 들어오겠지..

Update Constraints
NSWindow updateConstraintsIfNeeded
NSView updateConstraintsSubtreeIfNeeded
NSView updateConstraints
NSView needsUpdateConstraints
NSView setNeedsUpdateConstraints:
은 새로 나온 거겠지?

layout, display는 원래 있었던 mechanism대로 동작할 것 같다.
Layout
NSWindow layoutIfNeeded
NSView layoutSubtreeIfNeeded
NSView layout
NsView needsLayout
NSView setNeedsLayout:

Display
NSWindow displayIfNeeded
NSView displayIfNeeded
NSView drawRect:
NSView needsDisplay
NSView setNeedsDisplay:

그 외에도 baseline 을 지정하고, 이것을 이용해서 맞춰주는 기능도 있나보다.
alignment rect를 통해서, 직사각형 모양으로 맞추기
NSViewShowAlignmentRects 를 통해서 맞추는 것을 확인할 수도 있나보다.

demo를 보여주는데, ui debugging 기능이 정말 좋네.
설정만 하면, 어떤 object와 관련이 있는 alignment lines를 보여주고, 실제 내용을 알려준다.

constraint solving algorithm으로 
http://www.cs.washington.edu/research/constraints/cassowary/
을 추천해주는데, 어떤 역할을 하는지 모르겠다.

---

26' 부터 다시 본다.
Display mechanism은  top-down ~> 이게 from View to Super-view??
update constraints path는 bottom-up ~> 이게 leaf --> super --> super
layout은 top down (setFrame) . 이지만 실제 layout 계산은 꼭 그렇지만은 않다고 한다. 동시에 일어나는 것도 있다.

layoutIfNeeded 가 updateConstraints 를 부른대.

이제는 setFrame 하지 말고, constraint를 update해야 한다.

animation 할 때도 constraint를 바꿔야 한다.

autolayout 을 직접 구현한다고 했을 때, 이런 게 부담이 될 수도 있겠네.


slide를 보는 것이 최고.











 

'공부 > Computers' 카테고리의 다른 글

spring seminar 스크랩  (0) 2011.12.20
ios memory management 한글 문서 읽기  (0) 2011.11.30
ios 설정 구현하기 위해 필요한 video 찾기  (0) 2011.11.25
ios5 ui 새 기능들  (0) 2011.11.18
video about blocks in wwdc  (0) 2011.11.12
Pittarese javascript 배우기  (0) 2011.11.03
node js 관련 자료  (0) 2011.10.29
iphone foundation video는 기초부터  (0) 2011.10.25
Core data video  (0) 2011.10.20
Xcode Instruments tutorials  (0) 2011.10.13
by 언제나19 2011. 11. 10. 17:13


WWDC 2011 Session Videos - HD
에서 interface builder로 filtering하면 tutorial 이 3개 나온다.

그 중 story board는 진정 인상적이다.
그리고, nib으로부터 자연스럽게 발전했다는 것을 알 수 있다.
Session 309 - Introducing Interface Builder Storyboarding 50:04 11. 6. 16. Apple Developer Developer on iTunes

하지만, 혼자서 사용법을 익히는 것은 쉽지 않다.
도움말이 있어야 하겠는데, 아직 ios5가 release 되지 않아서 그런지, 도움말이 부족하다.
그래서 더욱 tutorial은 필수로 보고 시작해야겠다.

Session 302 - Using Interface builder in Xcode 4 53:44 11. 6. 16. Apple Developer Developer on iTunes
도 봤다.
앞부분에서는 nib 사용법을 가르쳐주고, 뒷부분에서는 autolayout 을 비롯한 layout 배치를 demo한다. 

그 외에도 3개 더 봐야겠네.
Autolayout 내용이랑 TableView 내용이 더 있었네~
Cocoa Autolayout

Session 120 - View Based NSTableView 53:44 11. 6. 16. Apple Developer Developer on iTunes
는 반절쯤 봤다. mac 에만 적용되는 거래. 아직 필요 없다.
Session 125 - UITableView Changes, Tips, Tricks 47:29 11. 6. 16. Apple Developer Developer on iTunes
는 너무 대충 봐서 내용은 잘 모르지만, 인상적인 건 없던 것 같다. 새로 추가된 작은 기능들 얘기만 있었던 것 같다.
 

'공부 > Computers' 카테고리의 다른 글

node js 관련 자료  (0) 2011.10.29
iphone foundation video는 기초부터  (0) 2011.10.25
Core data video  (0) 2011.10.20
Xcode Instruments tutorials  (0) 2011.10.13
mac unit test ocunit 외  (0) 2011.09.28
Effective cpp 시작  (0) 2011.09.09
ios push notification  (0) 2011.09.02
wwdc web 중 앞부분  (1) 2011.08.31
developer apple com video  (0) 2011.08.31
Graphics architecture 강의  (0) 2011.08.26
by 언제나19 2011. 9. 16. 17:05

WWDC 2011 Session Videos - HD


Session 501 - iCloud Storage Overview 38:10 11. 6. 16. Apple Developer Developer on iTunes

icloud가 api까지 있는 건지 몰랐었네.. 좋겠다 이거.

Session 502 - Advanced HTML5 Media Controllers in Safari 42:36 11. 6. 16. Apple Developer Developer on iTunes

주로 javascript , css
 
webkitRequestFullScreen() 등으로 video를 조절할 수 있다.
-webkit-full-screen 

spec이 just proposal 단계래.

발표하는 사람이 safari/webkit engineer래.
javascript로 만든 것 같아 보이는 sample application을 demo로 보여준다.

custom <video> control

20' 쯤에 나오는 demo는 참 길고 지루하다.

뒷부분 demo는 매우 인상적이다.

자막 관련 javascript link도 도움된다.

html5에서는 자막 표준으로 smil 이 아닌 webvtt 자막을 표준으로 선택한 것으로 보입니다.
http://www.whatwg.org/specs/web-apps/current-work/webvtt.html  
webvtt 자막의 경우, 아직 browser에서 지원하지 않는 것으로 보이지만,
video element에 자막을 넣어주는 javascript libraries가 있습니다.

https://github.com/cgiffard/Captionator
http://www.delphiki.com/html5/playr/
http://videojs.com/
http://popcornjs.org/

아쉽게도 이것들 중에도 smil을 지원하는 library는 없는 것 같습니다.



Session 519 - Combining Web Accessibility and Automation on iOS 48:35 11. 6. 16. Apple Developer Developer on iTunes

는 목소리도 조금 지루하고,
나한테 별로 도움도 안돼 보인다.

gesture 인식 부분이 들어가 있는 것 같기도 하고,
선택한 부분에 대한 글씨를 읽을 수 있는 것 같기도 하다.

30' 정도 딴 짓을 하며서 봤다.



Session 516 - Understanding Layout and Gestures 50:13 11. 6. 16. Apple Developer Developer on iTunes

Window와 viewport와의 관계를 알려준다.
browser의 default stylesheet가 user agent stylesheet로 나오네.

image를 늘리기.
주로, css layout 얘기
-webkit-device-pixel-ratio 라는 걸 정할 수가 있다.
if ('styleMedia' in window && window.styleMedia.matchMedium("screen and (device-width: 320px) and (-webkit-device-pixel-ratio ...

Flaky fixed positioning
javascript로 처리하면, scroll 중에 따라다니지 않는다. --> css positioning.
fixed positioning은 ios4에서 안되고, ios5 safari에서 지원.




wwdc 말고, 
Integrating Web Content into iPhone Apps     53:41     10. 3. 3.     Apple Developer     Developer on iTunes     
에서도 css shadow, mask 같은 거 가르쳐준다. 

iPhone Development Essential Videos                         
Using Advanced Web Technologies on iPhone     58:24     09. 3. 18.     Apple Developer     Developer on iTunes     
에서도 가르쳐줄 것 같다.





'공부 > Computers' 카테고리의 다른 글

Xcode Instruments tutorials  (0) 2011.10.13
mac unit test ocunit 외  (0) 2011.09.28
wwdc 2011 중 interface builder tutorial 인상적  (0) 2011.09.16
Effective cpp 시작  (0) 2011.09.09
ios push notification  (0) 2011.09.02
developer apple com video  (0) 2011.08.31
Graphics architecture 강의  (0) 2011.08.26
Standford machine learning  (0) 2011.08.26
The 3n+1 problem 부터도 실패  (1) 2011.08.15
WWDC2011 iBooks  (0) 2011.08.07
by 언제나19 2011. 8. 31. 15:43
| 1 2 3 |