Re: path name from Apple Event
Re: path name from Apple Event
- Subject: Re: path name from Apple Event
- From: "Sean McBride" <email@hidden>
- Date: Mon, 15 Aug 2005 12:10:15 -0400
- Organization: Rogue Research
On 2005-08-15 17:37, Gerriet M. Denkmann said:
>void *bytes = malloc( len );
>[ data getBytes: bytes ];
>AliasPtr aliasPtr = bytes ;
>AliasHandle aliasHandle = &aliasPtr ;
See:
<http://lists.apple.com/archives/Carbon-dev/2005/Jul/msg00916.html>
You might want to read the whole thread.
So try:
unsigned int len = [data length];
AliasHandle alias = (AliasHandle)NewHandle(len);
[ data getBytes: *alias ];
...
DisposeHandle (alias);
--
____________________________________________________________
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.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden