FROM : Conor Dearden
DATE : Thu Aug 31 21:49:34 2006
SimpleView.m needs to be part of the test app project. When the objects in
the nib are un-archived during the launch of the program, the SimpleView
class is not in the app or linked from a framework. Drag SimpleView.m and
SimpleView.h to your test project to include it there and not only in your
IB palette.
>I put initWithCoder: and encodeWithCoder: in SimpleView.m
This is not necessary to start as your view is a subclass of NSView and
NSView does this methods for you; you might want to use them later to
initialize any variables in a more complex example.
Conor
http://www.bruji.com/
DATE : Thu Aug 31 21:49:34 2006
SimpleView.m needs to be part of the test app project. When the objects in
the nib are un-archived during the launch of the program, the SimpleView
class is not in the app or linked from a framework. Drag SimpleView.m and
SimpleView.h to your test project to include it there and not only in your
IB palette.
>I put initWithCoder: and encodeWithCoder: in SimpleView.m
This is not necessary to start as your view is a subclass of NSView and
NSView does this methods for you; you might want to use them later to
initialize any variables in a more complex example.
Conor
http://www.bruji.com/
| Related mails | Author | Date |
|---|---|---|
| Livio Isaia | Aug 31, 17:38 | |
| Conor Dearden | Aug 31, 21:49 |






Cocoa mail archive

