• 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: Having Image PICT NIB problem ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Having Image PICT NIB problem ?


  • Subject: Re: Having Image PICT NIB problem ?
  • From: Norm Schuster <email@hidden>
  • Date: Mon, 17 Oct 2005 15:11:35 -0700

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
  • Follow-Ups:
    • Re: Having Image PICT NIB problem ?
      • From: "Denis @ TheOffice" <email@hidden>
    • Re: Having Image PICT NIB problem ?
      • From: "Denis @ TheOffice" <email@hidden>
References: 
 >Having Image PICT NIB problem ? (From: "Denis @ TheOffice" <email@hidden>)
 >Re: Having Image PICT NIB problem ? (From: "Sean McBride" <email@hidden>)
 >Re: Having Image PICT NIB problem ? (From: "Denis @ TheOffice" <email@hidden>)

  • Prev by Date: Re: Speeding up XCode?
  • Next by Date: Re: Speeding up XCode?
  • Previous by thread: Re: Having Image PICT NIB problem ?
  • Next by thread: Re: Having Image PICT NIB problem ?
  • Index(es):
    • Date
    • Thread