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: Wed, 19 Oct 2005 10:39:20 -0400
Yes, this is exactly what the book I refer before said.
Again, I have that golden touch with computers when something may fail it will fail indubitably with
me.
In my case it fails. What should I do now?
On a personal understanding:
The question might be stupid, but bear in mind that I did said that I do not grasp many concept in
Mac.
Why the Nib builder cannot import images by itself????
Actually, That is why I started the conversation here.
It seems more to me of an issue with XCode and tools than a programming one.
Thanks
Denis
Poking in the dark.
----- Original Message -----
From: "Jim Wrenholt" <email@hidden>
To: "Denis @ TheOffice" <email@hidden>
Cc: <email@hidden>
Sent: Tuesday, October 18, 2005 5:24 PM
Subject: Re: Having Image PICT NIB problem ?
Maybe this item on the CarbonDev wiki would be helpful if you are
continuing with old style resources.
http://www.carbondev.com/site/?page=Interface+Builder+Images
I wrestled with this for awhile and came to conclusion that I would
be better off just using bundled images and forgetting about classic
Resources, as I noted before.
> I am trying this with resources, but it fail to load the pict.
The word resources is ambiguous. It could mean the classic Resource
Manager and it's .r or .rsrc files. But also it's a generic term
for miscellaneous items, pictures, sounds, etc. needed for building
an application. I don't use the Resource Manager anymore but I still
have a "Resources" folder inside my bundle where Xcode places my
images when I build.
Jim Wrenholt
Nordic Software
On Oct 18, 2005, at 4:03 PM, Denis @ TheOffice wrote:
> 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:
> 40nordicsoftware.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