Initializing an NSView derivative's variables...
Initializing an NSView derivative's variables...
- Subject: Initializing an NSView derivative's variables...
- From: Jiva DeVoe <email@hidden>
- Date: Sat, 17 Aug 2002 23:16:59 -0700
So I have a custom view that I have attached to a custom view object in IB.
When the window is shown, my "initWithFrame" method will get called, right?
But what I really want to do is something like "initWithObjectForView" and
init the view with the object I want it to draw. This paradigm seems to be
something I whack my head into over and over, and it doesn't seem to fit
with the Cocoa framework. What am I missing? What is the design pattern
behind a custom view and initializing the object the view needs to show?
How do others accomplish this same kind of thing? Do they write a
"setObject" method to set the object for the view? And if so, when do they
call it?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.