Re: Having Image PICT NIB problem ?
Re: Having Image PICT NIB problem ?
- Subject: Re: Having Image PICT NIB problem ?
- From: "Denis @ TheOffice" <email@hidden>
- Date: Tue, 18 Oct 2005 17:03:37 -0400
I am trying this with resources, but it fail to load the pict.
Would you have any clue for me?
Denis
----- Original Message -----
From: "Norm Schuster" <email@hidden>
To: "Denis @ TheOffice" <email@hidden>
Cc: <email@hidden>
Sent: Monday, October 17, 2005 6:11 PM
Subject: Re: Having Image PICT NIB problem ?
Yes, although you have to use narrow encodings such as Shift-JIS for
each localized variant.
These resource files need to be located in the corresponding
localized "sub-folder", have the name "Localized.rsrc", and should
have the resources stored in the data fork of the file rather than
the resource fork (I'm not sure if XCode will do this for you - you
probably have to experiment). For example, your application bundle
would look something like this where "AppName" is the name of the
executable file:
/Contents/MacOS/AppName
/Contents/Resources/AppName.rsrc <--- "common" resources
/Contents/Resources/English.lproj/Localized.rsrc
/Contents/Resources/English.lproj/MyNibFile.nib
/Contents/Resources/German.lproj/Localized.rsrc
/Contents/Resources/German.lproj/MyNibFile.nib
...
On 17-Oct-05, at 2:49 PM, Denis @ TheOffice wrote:
> Thanks,
>
> At least I am having some answer I could build some solution on.
> I guess it is ok to have some dialogs in nib and some in RSRC files.
>
> One more thing I need to know is; Can we localize RSRC's ?
>
>
>> No. If you look in the headers, you will see that GetPicture is
>> deprecated.
>>
> What should I use instead?
>
> Denis
>
>
>
> ----- Original Message -----
> From: "Sean McBride" <email@hidden>
> To: "Denis @ TheOffice" <email@hidden>; <xcode-
> email@hidden>
> Sent: Monday, October 17, 2005 2:19 PM
> Subject: Re: Having Image PICT NIB problem ?
>
>
> On 2005-10-17 10:20, Denis @ TheOffice said:
>
>
>> I am pretty much new in the Mac programming. There are still much
>> concept I do not grasp jut yet.
>>
>
>
>> Hi Denis!
>>
>
>
>> One of them is the Nib vs. RSRC thing. I choose the Nib because I
>> liked
>> the editor and it seems the
>> way to go in the future.
>>
>
>
>> nibs are the present, not the future. :) Resource Manager (rsrc)
>> files
>> are the past, but also the present. :)
>>
>
>
>> I want to place icons and image in my dialogs.
>>
>> I don't see how to do that with Nib.
>>
>> I bought the book learning Carbon tried the suggested way which
>> was to
>> place the image (rsrc) in the
>> project.
>> It didn't work. Is there another way?
>> Besides what about icons?
>>
>
>
>> I've never used nibs in Carbon, only Cocoa, and they are not the
>> same,
>> so I don't have an answer.
>> What year is your book from? I suspect it is old.
>>
>
> I think it was XCode pre- 1.0 I don't have it here at work.
>
>
>> Another question that popped in my mind.
>> Does functions like "GetPicture (cPictureResID);" works with Nib?
>> No. If you look in the headers, you will see that GetPicture is
>> deprecated.
>>
>
>
>> Can I have Nibs and RSRC together in the same project?
>>
>
>
>> Yes.
>>
>
>
>> Would ID conflict ?
>>
>
>
>> No.
>>
>
> --
> ____________________________________________________________
> 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.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 40creo.com
>
> This email sent to email@hidden
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden