• 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: NSTableView - Responder - 'Focus'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView - Responder - 'Focus'


  • Subject: Re: NSTableView - Responder - 'Focus'
  • From: Allan Odgaard <email@hidden>
  • Date: Sat, 28 Feb 2004 08:12:09 +0100

On 27. Feb 2004, at 23:23, Ondra Cada wrote:

May I add a question, because cricket uses the underline character. I know in C++ names staring with 2 underline characters or with one followed by a uppercase letter are forbidden because they are reserved for libraries. Is there a similar restriction in Cocoa too?
I believe this applies to property and method/message names only: Apple reserves them. [...]

Well, the rules about reserved names from ANSI-C would also apply to ObjectiveC, and those rules from C++ would apply to ObjectiveC++.

As correctly stated, the names are reserved for libraries -- for example there is nothing preventing strlen to be a macro which introduce variables, and thus these would (w/o the convention) clash with the users names.

In C++ there is also the problem of name-mangling, i.e. the compiler will change names of functions etc. (to allow overloading), and it must ensure that the user cannot construct a name identical to the result of some mangling, since that would give linker problems.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: NSTableView - Responder - 'Focus' (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: very specialized event handling
  • Next by Date: Re: Populating NSScrollView
  • Previous by thread: Re: NSTableView - Responder - 'Focus'
  • Next by thread: Re: NSTableView - Responder - 'Focus'
  • Index(es):
    • Date
    • Thread