Re: resolving aliases
Re: resolving aliases
- Subject: Re: resolving aliases
- From: Bill Bumgarner <email@hidden>
- Date: Fri, 4 Aug 2006 04:56:53 -0700
On Aug 4, 2006, at 12:06 AM, Yvon Thoraval wrote:
what i don't know, at all, is the receiver of CFURLGetFSRef ???
i've tried :
fm=OSX::NSFileManager.defaultManager
url=OSX::NSURL.alloc.initFileURLWithPath(alias_file)
fsr=fm.fileSystemRepresentationWithPath(alias_file)
but fsr is (still?) a String... with the same value as alias_file...
The easiest way to solve this is to write a very simple Objective-C
class that makes the appropriate C calls to resolve the alias. Then,
load said class into your RubyCocoa app -- either by linking it into
the main project (if possible -- I haven't looked closely at
RubyCocoa's Cocoa project templates) or by creating a standard Cocoa
style NSBundle and dynamically loading it via NSBundle's API from Ruby.
Then, just call your class's API.
b.bum
_______________________________________________
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