delegation strategy
delegation strategy
- Subject: delegation strategy
- From: "Wesley Smith" <email@hidden>
- Date: Wed, 9 Jul 2008 11:19:56 -0400
Hi list,
I'm trying to provide a particular windowing interface that combines
NSWindow and NSPanel. For the most part I'm using a custom subclass
of NSWindow that adds a decent amount of functionality. Occasionally,
I want to make use of NSPanel (for the NSUtilityWindowMask style flag)
and I'd like it to behave exactly as my custom NSWindow subclass does.
I'm sure there's a way to make this work via some form of
delegation/message passing so that I don't have to duplicate code and
can just have messages passed from the NSWindow and NSPanel objects to
my custom methods, but I'm not really sure how that kind of design
pattern plays out in Cocoa. Any ideas? suggestions?
thanks,
wes
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden