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


Advanced Topics in Web Development - Fall 2011            Dr. Tony Pittarese, Computer and Information Sciences, http://einstein.etsu.edu/~pittares        This course will cover advanced Web coding concepts and teach students how to add an extra layer of usability to a Web page using a current scripting language or tool. Students will learn how to create, accessible modern web applications that integrate cu    http://deimos3.apple.com/WebObjects/Core.woa/Feed/etsu-public-dz.9187304281.09187304283
http://itunes.apple.com/itunes-u/advanced-topics-in-web-development/id454017618

CSCI 3110 Advanced Topics in Web Development (Fall 2011)
Slides and Source Code

javascript를 browser에서 dom을 조작할 때 쓰면 좋다.
이런 걸 가르쳐준다.

애초에 이런 걸로 정식으로 javascript를 배웠으면 좋았을텐데_ 아쉽다.
지금 보기에는 좀 쉬운 부분도 있어서, 좀 시간이 아까울 때도 있다.
(하지만, 막상 안익히고 coding하자면 너무 자주 막힌다.)

주로 internet explorer로 강의하는 것이 아쉬운 점이 될 지도 모르겠다.
필요할 때는 다른 browser를 켜주긴 한다.

Intro to Client-Side Web Scripting    1:03:29    11. 8. 31.       
Placeholder file until class begins    0:17    11. 7. 30.       
는 ipad로 봤었나보다.

Browser Object Model (BOM), part 1    17:17    11. 9. 29.

최상위 window object 는 생략 가능.
button click처럼 event를 거쳐서 open하면, popup blocker가 막지를 않네.

Browser Object Model (BOM), part 2    1:08:17    11. 10. 5.     
는 ipad로 이미 봤던 것 같다.
앞쪽부터 차례로 볼껄.. 어쨋든 이건 크게 와닿을 건 별로 없다.

Intro to Client-Side Web Scripting    1:03:29    11. 8. 31.
ipad로 봤었다. javascript 역사와 ecmascript 얘기도 해준다.

Intro to Client-Side Web Scripting, part 2    20:07    11. 9. 7.
이것도 13'쯤 보니까 이전에 ipad로 봤던 거 같다는 생각이 든다.

남은 건 앞부터 차례대로 하나씩 봐야겠다. pdf 강의자료랑 같이. 빠르게.

server side programming도 나중에 올라올 건가보다.
CSCI 2910 Server-Side Programming Class Syllabus Slides and Source Code
http://itunes.apple.com/itunes-u/server-side-web-programming/id405145994 는 지난 거


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

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
멋진 Cocoa autolayout videos  (0) 2011.11.10
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
by 언제나19 2011. 11. 3. 20:20

node js 관련 자료

2011. 10. 29. 19:35

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력해주세요.

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력해주세요.