• 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: Why do I get a capitalized extension?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why do I get a capitalized extension?


  • Subject: Re: Why do I get a capitalized extension?
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 31 Aug 2010 11:15:47 -0400
  • Organization: Rogue Research Inc.

On Mon, 30 Aug 2010 15:31:55 -0500, Paul Johnson said:

>When I run the program I create a file  "MyFile.sqlite" with an extension of
>"sqlite" as expected, but thinking I could simplify the code I replaced the
>second "if-else" block with simply
>
>  url = [NSURL fileURLWithPath:[path stringByAppendingPathExtension
>:STORE_TYPE]];

You really shouldn't rely on what the string value of NSSQLiteStoreType
is, since it's not documented.  So your code simplification is a bad
idea I'm afraid...

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Why do I get a capitalized extension? (From: Paul Johnson <email@hidden>)

  • Prev by Date: Re: baffling and infuriating "duplicate symbol" problem
  • Next by Date: Re: Creating mixed target iOS and Mac project
  • Previous by thread: Re: Why do I get a capitalized extension?
  • Next by thread: baffling and infuriating "duplicate symbol" problem
  • Index(es):
    • Date
    • Thread