Re: Finding Application support folder without Cocoa or Carbon

2010-07-12 Thread Alexander Cohen
Beautiful, thank you. AC On Jul 12, 2010, at 4:21 PM, Kevin Perry wrote: > You can use the C API in /usr/include/NSSystemDirectories.h. > > On Jul 12, 2010, at 1:17 PM, Alexander Cohen wrote: > >> Hello, >> >> I need to find the system Application Suppo

Re: Finding Application support folder without Cocoa or Carbon

2010-07-12 Thread Laurent Cerveau
I think the lowest level you get this is with FSFindFolder laurent Sent from my road phone On Jul 12, 2010, at 10:17 PM, Alexander Cohen wrote: > Hello, > > I need to find the system Application Support folder without using either > Carbon or Cocoa, i can use CoreFoundatio

Re: Finding Application support folder without Cocoa or Carbon

2010-07-12 Thread Jean-Daniel Dupas
Le 12 juil. 2010 à 22:17, Alexander Cohen a écrit : > Hello, > > I need to find the system Application Support folder without using either > Carbon or Cocoa, i can use CoreFoundation though. Is there a way to do this? > What prevent you to use CoreServices which is neither Ca

Re: Finding Application support folder without Cocoa or Carbon

2010-07-12 Thread Kevin Perry
You can use the C API in /usr/include/NSSystemDirectories.h. On Jul 12, 2010, at 1:17 PM, Alexander Cohen wrote: > Hello, > > I need to find the system Application Support folder without using either > Carbon or Cocoa, i can use CoreFoundation though. Is there a way to do th

Finding Application support folder without Cocoa or Carbon

2010-07-12 Thread Alexander Cohen
Hello, I need to find the system Application Support folder without using either Carbon or Cocoa, i can use CoreFoundation though. Is there a way to do this? thx AC___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Creating an Application Support folder

2010-02-13 Thread Sean McBride
Ken Thomases (k...@codeweavers.com) on 2010-02-13 08:58 said: >If you're targeting Snow Leopard or later, the new recommended routines are: > >-[NSFileManager URLForDirectory:inDomain:appropriateForURL:create:error:] >-[NSFileManager URLsForDirectory:inDomains:] > >The former can be told to create

Re: Creating an Application Support folder

2010-02-13 Thread Ken Thomases
On Feb 12, 2010, at 10:17 AM, Sean McBride wrote: > On 2/10/10 10:44 PM, Paul Johnson said: > >> I'm trying to find a best way to create the Application Support >> folder. I'm rather new at Cocoa so it's taking me a while to do even >> this simple thi

Re: Guidance on use of Application Support folder

2010-02-12 Thread Paul Sanders
ul Sanders. - Original Message - From: "Jean-Daniel Dupas" To: "Sean McBride" Cc: "Cocoa Developers" Sent: Friday, February 12, 2010 6:22 PM Subject: Re: Guidance on use of Application Support folder Switching away from Package Maker is fine as long as you maint

Re: Guidance on use of Application Support folder

2010-02-12 Thread Paul Sanders
quot;Paul Sanders" Cc: "Stuart Malin" ; Sent: Friday, February 12, 2010 6:02 PM Subject: Re: Guidance on use of Application Support folder Could you elaborate? We have been thinking to switch AWAY from PackageMaker because it is such a buggy monstrosity. __

Re: Guidance on use of Application Support folder

2010-02-12 Thread Jean-Daniel Dupas
Le 12 févr. 2010 à 19:02, Sean McBride a écrit : > On 2/12/10 9:51 AM, Kyle Sluder said: > >> Plea from a former sysadmin: *please* use a PackageMaker package, with >> the permissions bits set appropriately in the BOM, *not* an installer >> application! > > Could you elaborate? We have been th

Re: Guidance on use of Application Support folder

2010-02-12 Thread Kyle Sluder
On Fri, Feb 12, 2010 at 10:02 AM, Sean McBride wrote: > On 2/12/10 9:51 AM, Kyle Sluder said: > >>Plea from a former sysadmin: *please* use a PackageMaker package, with >>the permissions bits set appropriately in the BOM, *not* an installer >>application! > > Could you elaborate?  We have been thi

Re: Guidance on use of Application Support folder

2010-02-12 Thread Sean McBride
On 2/12/10 9:51 AM, Kyle Sluder said: >Plea from a former sysadmin: *please* use a PackageMaker package, with >the permissions bits set appropriately in the BOM, *not* an installer >application! Could you elaborate? We have been thinking to switch AWAY from PackageMaker because it is such a bugg

Re: Guidance on use of Application Support folder

2010-02-12 Thread Paul Sanders
Message - From: "Kyle Sluder" To: "Paul Sanders" Cc: "Stuart Malin" ; Sent: Friday, February 12, 2010 5:51 PM Subject: Re: Guidance on use of Application Support folder Plea from a former sysadmin: *please* use a PackageMaker package, with the permissions

Re: Guidance on use of Application Support folder

2010-02-12 Thread Kyle Sluder
On Fri, Feb 12, 2010 at 9:35 AM, Paul Sanders wrote: > Licenses belong in /Library/Application Support (no squiggle), > IMO.  Plugins too, probably.  But templates, yes, although > perhaps they might be stored in /Library/Application Support at > the user's option ('make this template available to

Re: Guidance on use of Application Support folder

2010-02-12 Thread Paul Sanders
; To: "Stuart Malin" Cc: Sent: Friday, February 12, 2010 5:12 PM Subject: Re: Guidance on use of Application Support folder It seems to me that it is telling you not to save user documents there. Templates, user-installed plugins, licenses, and all sorts of other stuff goes (and belon

Re: Guidance on use of Application Support folder

2010-02-12 Thread Lightning Duck
What has confused me about this is why does CoreDate store it's data in the Application Support folder be default then? On Feb 12, 2010, at 9:27 AM, Stuart Malin wrote: > I sorta would agree, Jens, and certainly many apps do put user-specific files > here, but the Apple docs speci

Re: Guidance on use of Application Support folder

2010-02-12 Thread Kyle Sluder
On Fri, Feb 12, 2010 at 8:27 AM, Stuart Malin wrote: > I sorta would agree, Jens, and certainly many apps do put user-specific files > here, but the Apple docs specifically say this is NOT how the Application > Support folder should be used. I think you're misreading the docu

Re: Guidance on use of Application Support folder

2010-02-12 Thread Stuart Malin
I sorta would agree, Jens, and certainly many apps do put user-specific files here, but the Apple docs specifically say this is NOT how the Application Support folder should be used. ~~~ "A support file is any type of file that supports the application but is not required for the applic

Re: Creating an Application Support folder

2010-02-12 Thread Sean McBride
On 2/10/10 10:44 PM, Paul Johnson said: >I'm trying to find a best way to create the Application Support >folder. I'm rather new at Cocoa so it's taking me a while to do even >this simple thing. Since you're new to Cocoa, I'm guessing all the other replies have

Re: Guidance on use of Application Support folder

2010-02-12 Thread Jens Alfke
On Feb 12, 2010, at 8:05 AM, Stuart Malin wrote: > I am building an app that needs to store per-user data that is not document > specific. I have created a folder under ~/Library for this, and am not using > ~/Library/Application Support. Is there guidance from Apple on where such > per-user,

Guidance on use of Application Support folder

2010-02-12 Thread Stuart Malin
The recent post regarding "Creating an Application Support folder" <http://lists.apple.com/archives/cocoa-dev/2010/Feb/msg00618.html> made me think about that folder. My understanding is that this folder is to be used for information generically usable by the application, but n

Re: Creating an Application Support folder

2010-02-11 Thread Graham Cox
On 12/02/2010, at 3:23 PM, Graham Cox wrote: > That folder can be found using NSApplicationSupportDirectory Scratch that - this returns the /Library/Application Support, not ~/Library/Application Support Gideon's right - use NSSearchPathForDirectoriesInDomains() --Graham __

Re: Creating an Application Support folder

2010-02-11 Thread Fritz Anderson
On 10 Feb 2010, at 9:44 PM, Paul Johnson wrote: > I have a function "- (NSString *)applicationSupportFolder" that > returns the desired folder name, properly localized. I call this > function and then use NSFileManager to check for the existence of the > folder. Because there can be a file (NOT a

Re: Creating an Application Support folder

2010-02-11 Thread Graham Cox
On 11/02/2010, at 2:44 PM, Paul Johnson wrote: > I'm trying to find a best way to create the Application Support > folder. I'm rather new at Cocoa so it's taking me a while to do even > this simple thing. I'm also interested in ensuring my application can > be

Re: Creating an Application Support folder

2010-02-11 Thread Gideon King
Hi Paul Firstly, are you using the NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES); function to find the application support folder? That would get you the base path, then you can use the stringByAppendingPathComponent: method to add your folder

Creating an Application Support folder

2010-02-11 Thread Paul Johnson
I'm trying to find a best way to create the Application Support folder. I'm rather new at Cocoa so it's taking me a while to do even this simple thing. I'm also interested in ensuring my application can be localized easily. I have a function "- (NSString *)applicationSu

Re: Application Support Folder

2009-06-25 Thread Anthony Smith
Sorry, I didn't see that it came though. I'm new to the list so I kept getting the moderator bounce back and assumed it didn't go through. I've actually submitted this question several times. Also, thanks for the feedback. I thought it was weird they implemented it using NSTemporaryDirector

Re: Application Support Folder

2009-06-24 Thread Kyle Sluder
On Tue, Jun 23, 2009 at 9:02 PM, Anthony Smith wrote: > If count is not greater than 0 then it returns an NSTemporaryDirectory. > What's the point? Is that check really necessary? Will there ever be an > instance where NSSearchPathForDirectoriesInDomains will not return the > NSApplicationSupportDi

Application Support Folder

2009-06-24 Thread Anthony Smith
I'm beginning to delve into Core Data and I've been looking at the generated code for the Xcode Core Data project. I'm finding their implementation of -applicationSupportFolder interesting. They grab the NSApplicationSupportDirectory using NSSearchPathForDirectoriesInDomains, which makes se