• 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: Roarke Lynch <email@hidden>
  • Date: Thu, 28 Oct 2004 23:00:38 -0400

On Oct 28, 2004, at 8:53 AM, Andreas Mayer wrote:


Am 27.10.2004 um 22:08 Uhr schrieb The Amazing Llama:

-infoForURL:
or
-infoWithURL:

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

I'm using 'objectForX:' when X is just used to look up object and 'objectWithX:' when X will be added to / included in object.

I semi-agree. I would assume that infoForURL will return an object which the receiver already owns, while infoWithURL would return a newly created instance of info using URL in some fashion.

Roarke Lynch

_______________________________________________
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
  • Follow-Ups:
    • Re: [ANN] Cocoa Style for ObjC: 1 and 2
      • From: The Amazing Llama <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: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: KVO of nested objects
  • Next by Date: Re: KVO of nested objects
  • 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