• 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: NSDrawer contentView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDrawer contentView


  • Subject: Re: NSDrawer contentView
  • From: Daniel Todd Currie <email@hidden>
  • Date: Mon, 5 Jan 2004 02:10:40 -0800

Yah, I've connected everything I can think of... I'll try to describe the problem more precisely:

I have an NSTextField with an NSButton immediately to its right. The field is set to expand to the drawer width minus the button width. However, the field ends up covering half the button. I try making the field smaller in IB, but when the app is actually run, the field once again covers half the button. It's really quite bizarre. I'll play around with some of the resizing methods you suggest, but I shouldn't have to set the field size programmatically.


On 2004 Jan 04, at 20:06, Dustin Voss wrote:

On 4 Jan, 2004, at 7:06 PM, Daniel Todd Currie wrote:

I have the following code:

NSLog(@"content bounds = %@", [[inspectorDrawer contentView] bounds]);

This returns (null). If I try the same thing with "frame" instead of "bounds", the application crashes on this NSLog.

I have several NSTextFields in this drawer's content view that I would like to have stretch along with the drawer width (which changes as the parent window is resized). I set them up as such in IB, but they do not get drawn correctly and I cannot figure out why. Perhaps it has something to do with the content view having null bounds and some freaky value for frame?

Do content views even have legitimate frames/bounds? I've tried this in a couple of different apps and /Developer/Examples/ and it seems none of these content views have proper values for these parameters. Any ideas how I can get my text fields to be drawn/resized correctly?

Try setting a min/max content size in IB, or try calling setContentSize: and setMin/MaxContentSize: in your awakeFromNib method.

Aside from that, what is going wrong with the resizing? And did you connect all the outlets in IB?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSDrawer contentView
      • From: Daniel Todd Currie <email@hidden>
References: 
 >NSDrawer contentView (From: Daniel Todd Currie <email@hidden>)

  • Prev by Date: Re: [OT] "Cocoa in a Nutshell" is great!
  • Next by Date: Re: NSPro UI clone?
  • Previous by thread: Re: NSDrawer contentView
  • Next by thread: Re: NSDrawer contentView
  • Index(es):
    • Date
    • Thread