• 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: [ANN] Cocoa Style for ObjC: 1 and 2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ANN] Cocoa Style for ObjC: 1 and 2


  • Subject: Re: [ANN] Cocoa Style for ObjC: 1 and 2
  • From: Marco Scheurer <email@hidden>
  • Date: Thu, 28 Oct 2004 17:33:43 +0200


On Oct 27, 2004, at 10:57 PM, Scott Stevenson wrote:


On Oct 27, 2004, at 1:08 PM, The Amazing Llama wrote:

infoByURL (a dictionary of URL objects pointing to "info" objects)
pagesByDate (a dictionary of date objects pointing to "page" arrays (because of the plural))

etc. This makes it very easy to use later on, when you might have multiple dictionaries pointing to the same data via different keys. It is also relatively easy to expand this to accessors,

Yeah, this is a good one.

Yes, I use it too.

-infoForURL:
or
-infoWithURL:

although I'm still trying to decide which makes more sense, for or with.

IMHO for a dictionary query infoForURL makes more sense, similar to objectForKey vs. objectWithKey. And it frees 'with' for the other cases, mostly methods that construct an object with another.

Marco Scheurer
Sen:te, Lausanne, Switzerland http://www.sente.ch

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >[ANN] Cocoa Style for ObjC: 1 and 2 (From: Scott Stevenson <email@hidden>)
 >Re: [ANN] Cocoa Style for ObjC: 1 and 2 (From: The Amazing Llama <email@hidden>)
 >Re: [ANN] Cocoa Style for ObjC: 1 and 2 (From: Scott Stevenson <email@hidden>)

  • Prev by Date: Re: NSTableView with popupbuttons
  • Next by Date: c++ in obj-c cocoa apps (post-FAQ)
  • Previous by thread: Re: [ANN] Cocoa Style for ObjC: 1 and 2
  • Next by thread: Re: [ANN] Cocoa Style for ObjC: 1 and 2
  • Index(es):
    • Date
    • Thread