Skip navigation.
 
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2
FROM : Marco Scheurer
DATE : Thu Oct 28 17:33:43 2004

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

Related mailsAuthorDate
ml[ANN] Cocoa Style for ObjC: 1 and 2 Scott Stevenson Oct 27, 01:25
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 Marco Scheurer Oct 27, 01:50
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 Scott Stevenson Oct 27, 02:40
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 Keith Anderson Oct 27, 04:24
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 Erik M. Buck Oct 27, 04:46
ml[OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2 Graham cox Oct 27, 05:10
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 Scott Stevenson Oct 27, 05:19
mlRe: [OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2 Scott Stevenson Oct 27, 05:21
mlRe: [OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2 Eric Ocean Oct 27, 05:43
mlRe: [OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2 Scott Stevenson Oct 27, 05:58
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 M. Uli Kusterer Oct 27, 08:47
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 Scott Stevenson Oct 27, 09:06
mlRe: [OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2 Adrian Bool Oct 27, 09:49
mlRe: [OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2 Steve Checkoway Oct 27, 09:49
mlRe: [OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2 M. Uli Kusterer Oct 27, 15:08
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 The Amazing Llama Oct 27, 22:00
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 The Amazing Llama Oct 27, 22:08
mlRe: [OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2 The Amazing Llama Oct 27, 22:15
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 Scott Stevenson Oct 27, 22:50
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 Scott Stevenson Oct 27, 22:57
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 Ken Ferry Oct 27, 23:13
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 Glenn Andreas Oct 27, 23:22
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 Scott Stevenson Oct 28, 01:12
mlRe: [OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2 Graham cox Oct 28, 01:15
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 Ken Ferry Oct 28, 02:52
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 Evan Schoenberg Oct 28, 03:48
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 Andreas Mayer Oct 28, 14:53
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 The Amazing Llama Oct 28, 17:15
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 Marco Scheurer Oct 28, 17:33
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 Roarke Lynch Oct 29, 05:00
mlRe: [ANN] Cocoa Style for ObjC: 1 and 2 The Amazing Llama Oct 29, 16:51