• 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: IB3 Plugin Troubles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IB3 Plugin Troubles


  • Subject: Re: IB3 Plugin Troubles
  • From: Seth Willits <email@hidden>
  • Date: Thu, 31 Jul 2008 23:09:53 -0700

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: This email sent to email@hidden
References: 
 >IB3 Plugin Troubles (From: Seth Willits <email@hidden>)
 >Re: IB3 Plugin Troubles (From: Jonathan Hess <email@hidden>)

  • Prev by Date: Re: X-Code 3.0: unable to enable SCM in a project
  • Next by Date: Re: Xcode rebuilds everything after reboot
  • Previous by thread: Re: IB3 Plugin Troubles
  • Next by thread: Can't debug Cocoa Application unit test
  • Index(es):
    • Date
    • Thread