• 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: File's Owner
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File's Owner


  • Subject: Re: File's Owner
  • From: Andy Lee <email@hidden>
  • Date: Tue, 27 May 2008 08:34:26 -0400

On May 27, 2008, at 5:11 AM, Hamish Allan wrote:
The problem with "Nib owner" is that it suffers from exactly the same
problem Quincey highlighted:

"File's Owner isn't the object that loaded the nib, it's the object
that the object that loaded the nib *says* is the owner. [...]
although it's *called* 'File's Owner', the concept isn't essentially
about files or ownership."

"Nib owner" only fixes half of that problem.

Perhaps "Nib's Delegate" would fit better with people's understanding?

I think this would add confusion. The File's Owner is not necessarily a delegate of anything, least of all the delegate of a nib. The most common counterexample would be MainMenu.nib.


If I could go back in time, I would address Quincey's observation like this:

* Make +[NSBundle loadNibNamed:owner:] a *private* method.
* Add an instance method on NSObject called loadNibNamed:, possibly in a category with a name like "Bundle Extensions"; it would call + [NSBundle _loadNibNamed:owner:].
* Change the term "File's Owner" to "Nib Loader".


This way we'd be reinforcing the concept of "load a nib" in two places, rather than "load a nib" in one place and "own a file" in the other.

I don't know if there's too much existing stuff out there (code, documentation, third-party books, ingrained habits in people's minds) for Apple to change terminology this basic, or if it would be worth it. But if it's possible and desirable that's how I'd suggest doing it.

--Andy

_______________________________________________

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: File's Owner
      • From: Andy Lee <email@hidden>
References: 
 >File's Owner (From: Johnny Lundy <email@hidden>)
 >Re: File's Owner (From: Uli Kusterer <email@hidden>)
 >Re: File's Owner (From: Quincey Morris <email@hidden>)
 >Re: File's Owner (From: dream cat7 <email@hidden>)
 >Re: File's Owner (From: "Hamish Allan" <email@hidden>)

  • Prev by Date: 'Inheriting' a NSDateFormatterStyle
  • Next by Date: to get volume mount/unmount notification
  • Previous by thread: Re: File's Owner
  • Next by thread: Re: File's Owner
  • Index(es):
    • Date
    • Thread