• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: path name from Apple Event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: path name from Apple Event (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: NSButtonCell columns in NSOutlineView
  • Next by Date: attributed string in nsoutlineview
  • Previous by thread: Re: path name from Apple Event
  • Next by thread: Re: path name from Apple Event
  • Index(es):
    • Date
    • Thread