• 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: 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
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: [ANN] Cocoa Style for ObjC: 1 and 2
  • Next by Date: Saving image as JPG, GIF, PNG, etc.
  • 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