• 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: defined but not used error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: defined but not used error


  • Subject: Re: defined but not used error
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 26 May 2008 11:17:10 -0700


On 26 May '08, at 11:09 AM, Sebastian Nowicki wrote:

Is this usually how notification names are defined? I was wondering how people did it, so I search using google's code search and found a few examples of that method, but they weren't defined const.

I don't know why AppKit doesn't use const. Without it, the symbol is just an ordinary global variable and could be accidentally reassigned another value, leading to weird and hard-to-debug errors.


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: defined but not used error
      • From: "Kyle Sluder" <email@hidden>
References: 
 >defined but not used error (From: "John Love" <email@hidden>)
 >Re: defined but not used error (From: Jens Alfke <email@hidden>)
 >Re: defined but not used error (From: Sebastian Nowicki <email@hidden>)

  • Prev by Date: Re: defined but not used error
  • Next by Date: Refreshing an NSTableView with an NSMutableArray dataSource
  • Previous by thread: Re: defined but not used error
  • Next by thread: Re: defined but not used error
  • Index(es):
    • Date
    • Thread