Re: [ANN] Cocoa Style for ObjC: 1 and 2
Re: [ANN] Cocoa Style for ObjC: 1 and 2
- Subject: Re: [ANN] Cocoa Style for ObjC: 1 and 2
- From: Glenn Andreas <email@hidden>
- Date: Wed, 27 Oct 2004 16:22:22 -0500
At 1:57 PM -0700 10/27/04, Scott Stevenson wrote:
On Oct 27, 2004, at 1:08 PM, The Amazing Llama wrote:
-infoForURL:
or
-infoWithURL:
although I'm still trying to decide which makes more sense, for or with.
There was a thread on this either here or at macosx-dev not to long
ago. Based on existing API, the conclusion was "no conclusion."
Saddly like "filename" vs "fileName" vs "file"?
NSSavePanel, NSFileWrapper: filename
NSOpenPanel: filenames
NSDocument: fileName
even when NSDocument uses NSSavePanel, it's:
- fileNameFromRunningSavePanelForSaveOperation:
NSDocumentController: documentForFileName
NSApplication: addWindowsItem:title:filename:
NSURLDownload: download:decideDestinationWithSuggestedFilename:
NSURLResponse: suggestedFilename
And most other classes just use "file" (initWithContenstOfFile:,
writeToFile:, etc...)
So should you use "filename", "fileName", or "file"?
--
Glenn Andreas email@hidden
<
http://www.gandreas.com/> oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
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