Re: Why do I get a capitalized extension?
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