On Wed, Apr 9, 2008 at 11:06 AM, Dave Camp <[EMAIL PROTECTED]> wrote: > After designing the UI for a new System Preferences pane I've discovered > that the window size in Leopard is 75 pixels wider than it was in Tiger or > earlier OS releases. The net result appears to be that my shiny new UI is > clipped on the right side in Tiger. Ugh. I've sent feedback that the docs > are incorrect here and need to be updated... > > In the mean time, what is the correct way to handle this? > > From what I've read on the net adding springs in IB doesn't help. Would it > be safe for me to resize the preferences window to be 75 pixels wider on > Tiger while my pane is visible (and size it back down when my pane is > deselected)?
Probably not a good idea. Although the window width differs from Tiger to Leopard, it's not supposed to be a resizable window. If you're going to run on Tiger you'll need to live with the narrower window. I was pretty annoyed when I found out that Leopard's System Preferences wouldn't resize the pref pane view, even if you had designed it to be resizable. But that's the way it is. > Do I have to make my UI narrower and have an obnoxious amount of dead space > around the edges on Leopard? Maybe. You can find out what the current window width is once your preference pane has been loaded into the window. Using something like "[[[self mainView] superview] frame]" would give you the current width, and if desired you could adjust mainView's frame appropriately. This would mean designing to Tiger's pref pane width, and then expanding when running on Leopard. Best to stick with looking up the size instead of the OS version, because who knows what might happen in 10.6? -- Tom Harrington [EMAIL PROTECTED] AIM: atomicbird1 _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
