Mathieu Tozer's Dev Blog

Cocoa, the development of Words, and other software projects (including those dang assessment tasks).




Cocoa Workshop Day 3


E-mail this post



Remember me (?)



All personal information that you provide here will be governed by the Privacy Policy of Blogger.com. More...



Today is about learning how to create a really interactive application. Graphics, archiving. Storing objects in the model and havin the view display them.
CocoaWorkshopDay3CustomView

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

      Convert to boldConvert to italicConvert to link

 


+RSS | dev blog | Portfolio

About me

My status

Previous posts

  • my del.icio.us
  • my flickr