• 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
Re: NSWindowController, owner, "primary window"...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindowController, owner, "primary window"...


  • Subject: Re: NSWindowController, owner, "primary window"...
  • From: Gerd Knops <email@hidden>
  • Date: Thu, 21 Aug 2008 11:59:50 -0500


On Aug 20, 2008, at 11:10 PM, Graham Cox wrote:


On 21 Aug 2008, at 5:13 am, Gerd Knops wrote:

That'd work, but I'd have to subclass NSWindowController for that so I can add that property. Seemed to me that the above would not be an uncommon pattern and there ought to be a more elegant way that I might have missed.


Yep, that's the usual approach. What's the problem with subclassing? An unsubclassed NSWindowController isn't really all that useful. Why is subclassing so often referred to as "inelegant"? That's what OOP is for.

No problem with subclassing. It was just the presence of the '- initWithWindowNibName:owner:' method that tripped me off a little, as it seems near useless unless there is some undocumented magic behind it.

Gerd

_______________________________________________

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: NSWindowController, owner, "primary window"...
      • From: "Kyle Sluder" <email@hidden>
References: 
 >NSWindowController, owner, "primary window"... (From: Gerd Knops <email@hidden>)
 >Re: NSWindowController, owner, "primary window"... (From: Ken Thomases <email@hidden>)
 >Re: NSWindowController, owner, "primary window"... (From: Gerd Knops <email@hidden>)
 >Re: NSWindowController, owner, "primary window"... (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: How to enumerate directory contents?
  • Next by Date: Re: How to enumerate directory contents?
  • Previous by thread: Re: NSWindowController, owner, "primary window"...
  • Next by thread: Re: NSWindowController, owner, "primary window"...
  • Index(es):
    • Date
    • Thread