Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IB3 Plugin Troubles



On Jul 31, 2008, at 10:22 PM, Jonathan Hess wrote:

Hey Seth -

Sorry to hear that you're having troubles.


I'm sorry to be having them. :-)

It would be quite awesome if there was a simple IB plugin example that had a view with two cells in it.




PreferredDesignSize and ibPreferredResizeDirection are both used to implement the size to fit action from the layout menu. Right now Interface Builder really only uses ibMinimumSize in one case, when one of the dimensions is equal to the same dimesion provided by ibMaximumSize. In this case, IB prevents resizing along that axis. For example, if your segmented control is not vertically resizable, then implement ibMaximumSize, and ibMinimumSize to return the same value for the height of the control. This will prevent vertical resizing of the control. Right now there is no way to declare that the control cannot be resized to a width less than some specific value. This may change in the future, and if it does, the results of these methods will be used to limit the resizing.

Aha. Well that explains that. It'd be nice if that was documented somewhere.






How does the behavior your seeing differ from a table view for example?

The window's content view is what's currently selected. When I click to select my segmented control, it instead selects the segment under the mouse.




Are you implementing isChildInitiallySelectable on the segmented control, and returning NO for the segment objects

Yes.

@implementation AGSegmentedControl ( AGSegmentedControlIBIntegration )
- (BOOL)isChildInitiallySelectable:(id)child;
{
	return NO;
}
@end





- I can't figure out how to get an inspector for my cell to appear in the Sizing panel of the Inspector window. Like NSSegmentedControl, my segments can have independent widths so I want to stick the sizing information in there.

Ideally, you would be able to introduce an inspector into any of the inspector modes. Right now the public API only allows for insertion into the attributes inspector mode.

I found the private one. hehehehe :-)

(I know, I know....)




Thanks for your help,


-- Seth Willits




_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >IB3 Plugin Troubles (From: Seth Willits <email@hidden>)
 >Re: IB3 Plugin Troubles (From: Jonathan Hess <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.