Cocoa Workshop Day 3
Published Friday, July 07, 2006 by Mathieu | E-mail this post
Today is about learning how to create a really interactive application. Graphics, archiving. Storing objects in the model and havin the view display them.
Custom view - just a generic view, it doesn't have a class associated with it. You do this via the custom classes attribute. You could assign it to anything, but you make your own!
Quartz Debug (the flashy thing) can show what is being redrawn in your app by quartz. Use it while optimizing.
Event methods
– mouseDown:
– mouseDragged:
– mouseUp:
– mouseMoved:
– mouseEntered:
– mouseExited:
...
All these tell you the events that we can monitor and watch for.
Floating point numbers for pixel referencing makes for antialiasing and blurring of lines. Nice!
Option double click! Wow!
The receiver is always what is on the left hand side of the method call.
Make sure you know which nib file you are working on and that it corresponds to the current Xcode project!
だからこのように自分で設けて、モデルしながらプログラミングする。
0 Responses to “Cocoa Workshop Day 3”
Leave a Reply