• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
delegation strategy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: delegation strategy
      • From: "Michael Ash" <email@hidden>
  • Prev by Date: Re: Why can't I name a property `tag'?
  • Next by Date: Re: the 11th can't come soon enough :-)
  • Previous by thread: Re: Mini Popup Window (Like iCal)
  • Next by thread: Re: delegation strategy
  • Index(es):
    • Date
    • Thread