Re: CF replacement to FSFindFolder?

2012-11-23 Thread C.W. Betts
I bit the bullet and my Plug-in handling code now has some Cocoa in it.
On Nov 2, 2012, at 6:59 PM, Sean McBride s...@rogue-research.com wrote:

 On Fri, 2 Nov 2012 18:50:27 -0600, C.W. Betts said:
 
 Is there a Core Foundation replacement for FSFindFolder?
 
 I don't think so.  Today's recommendation is NSFileManager's 
 URLForDirectory:inDomain:appropriateForURL:create:error:.
 
 I'm reluctant
 to use Cocoa functions in my framework.
 
 Why?
 
 As it is, I'm using an absolute
 path to get to a folder in Application Support in both the local and
 user libraries.
 
 Which is fragile, as you know.
 
 Cheers,
 
 --
 
 Sean McBride, B. Eng s...@rogue-research.com
 Rogue Researchwww.rogue-research.com
 Mac Software Developer  Montréal, Québec, Canada
 
 
 


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: CF replacement to FSFindFolder?

2012-11-02 Thread Sean McBride
On Fri, 2 Nov 2012 18:50:27 -0600, C.W. Betts said:

Is there a Core Foundation replacement for FSFindFolder?

I don't think so.  Today's recommendation is NSFileManager's 
URLForDirectory:inDomain:appropriateForURL:create:error:.

I'm reluctant
to use Cocoa functions in my framework.

Why?

As it is, I'm using an absolute
path to get to a folder in Application Support in both the local and
user libraries.

Which is fragile, as you know.

Cheers,

-- 

Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com 
Mac Software Developer  Montréal, Québec, Canada



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com