• 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: Newbie question: error in creating a NSData object using handle (Resource Management)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie question: error in creating a NSData object using handle (Resource Management)


  • Subject: Re: Newbie question: error in creating a NSData object using handle (Resource Management)
  • From: "Hamish Allan" <email@hidden>
  • Date: Wed, 25 Jun 2008 14:43:30 +0100

On Wed, Jun 25, 2008 at 2:08 PM, Kyle Sluder
<email@hidden> wrote:

> On Wed, Jun 25, 2008 at 4:42 AM, Tran Kim Bach <email@hidden> wrote:
>
>> But I checked the exe file and it's absolutely there(in the bundle).
>
> What is this "exe file" nonsense?  I don't have any files with the
> extension "exe" on my machine.  I'd wager you don't either.

To be fair, one might use the word "exe" as an abbreviation for "executable"!

>> Now, when I confirmed the *dataHandle, it returned NULL
>> but I don't know why?
>
> Post the code that supposedly assigns something to dataHandle, and we
> might be able to help you.

He did that in an earlier email:

Handle dataHandle = Get1IndResource( type1, n);

The documentation for Get1IndResource() has two notes of particular interest:

1) If it returns NIL [sic], the ResError() function can give you more info.
2) It's a legacy function and you should be using something else.

Someone who knows more about these things than I do may be able to
point you in the direction of a more modern way of accessing resources
:)

Hamish
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Newbie question: error in creating a NSData object using handle (Resource Management)
      • From: Andrew Farmer <email@hidden>
References: 
 >Newbie question: error in creating a NSData object using handle (Resource Management) (From: "Tran Kim Bach" <email@hidden>)
 >Re: Newbie question: error in creating a NSData object using handle (Resource Management) (From: Ken Thomases <email@hidden>)
 >Re: Newbie question: error in creating a NSData object using handle (Resource Management) (From: "Tran Kim Bach" <email@hidden>)
 >Re: Newbie question: error in creating a NSData object using handle (Resource Management) (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Re: Newbie question: error in creating a NSData object using handle (Resource Management)
  • Next by Date: Can't open PrefPane on Air w/10.5.3
  • Previous by thread: Re: Newbie question: error in creating a NSData object using handle (Resource Management)
  • Next by thread: Re: Newbie question: error in creating a NSData object using handle (Resource Management)
  • Index(es):
    • Date
    • Thread