• 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: Keys of the kingdom
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keys of the kingdom


  • Subject: Re: Keys of the kingdom
  • From: "Jordan Krushen" <email@hidden>
  • Date: Sat, 22 Apr 2006 18:59:13 -0700

On 4/22/06, Shawn Erickson <email@hidden> wrote:

> On Apr 22, 2006, at 3:58 PM, Ryan Britton wrote:
> > const NSString *MSFileBackupDate = @"MSFileBackupDate";

> 1) NSString* const MSFileBackupDate = @"MSFileBackupDate";

If ever in doubt that one's declarations are correct, just try
reassigning the pointer to see if the compiler complains:

#import <Foundation/Foundation.h>

NSString * const foo = @"foo";

int main (int argc, const char * argv[]) {
	foo = @"bar";	// assignment of read-only variable 'foo'
	return 0;
}

Sometimes empirical tests are easier than either remembering or looking it up :)

J.
 _______________________________________________
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: 
 >Keys of the kingdom (From: Kevin Bracey <email@hidden>)
 >Re: Keys of the kingdom (From: Ondra Cada <email@hidden>)
 >Re: Keys of the kingdom (From: Boyd Collier <email@hidden>)
 >Re: Keys of the kingdom (From: Ryan Britton <email@hidden>)
 >Re: Keys of the kingdom (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: WebView Mouse Events
  • Next by Date: Re: Observing Core Data model changes
  • Previous by thread: Re: Keys of the kingdom
  • Next by thread: Re: Keys of the kingdom
  • Index(es):
    • Date
    • Thread