Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Extra edit box gets displayed in dialog window created from resources!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extra edit box gets displayed in dialog window created from resources!



On 22.05.2007, at 19:55, Laurence Harris wrote:
The point I want to make is that you shouldn't even ask this kind of question. Instead of asking how to do some low level hack you think you need to address something, you should ask for the best way to address the higher level problem.

Shrinidhi,

Larry has a point here... it may be useful to know what situation you're in, what your constraints are. Why do you think you still have to use DLOG and DITL resources for your windows? Did your app somehow save them into its documents? DITL and DLOG are trivial formats ... a DLOG is essentially a 2-byte-aligned struct that got saved to a resource in PowerPC-endian format, and a DITL is an array of a couple of shorts and longs plus a counter. You may save yourself a lot of hassle by just writing a quick converter that outputs to, say, an XML- plist format and then creating the appropriate controls yourself.

If this is just for the dialogs in your program, I'd suggest you bite the bullet and just recreate your DLOGs and DITLs as NIB windows. The Dialog manager is legacy technology, and kludging around to modernize it simply is not worth the hassle, especially since all the reasons people used to use it (in particular for legacy windows) went away with the arrival of Appearance and more powerful controls.

Cheers,
-- M. Uli Kusterer
"The Witnesses of TeachText are everywhere..."



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Extra edit box gets displayed in dialog window created from resources! (From: Shrinidhi Karanth <email@hidden>)
 >Re: Extra edit box gets displayed in dialog window created from resources! (From: Laurence Harris <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.