• 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: Various UI questions...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Various UI questions...


  • Subject: Re: Various UI questions...
  • From: Chas Spillar <email@hidden>
  • Date: Fri, 20 Jan 2006 11:40:29 -0800
  • Thread-topic: Various UI questions...

Thanks Corbin,

I used the following:

[tableView
setColumnAutoresizeingStyle:NSTableViewLastColumnOnlyAutoresizingStyle];

And
[tableColumn setResizingMask:NSTableColumnAutoresizingMask];

And it worked.  However, this is a Tiger only solution.  Is there a Panther
solution that I could use as well?

Also, the header of the column does not live resize.  In noticed in some
previous posts you mentioned that we need to subclass NSTableView drawRect:.
Is this still correct, and what should this drawRect: method do to achieve
the correct affect (e.g. Have the title of the column live resize)?

Thank you very much for your help,

Chas.


> From: Corbin Dunn <email@hidden>
> Date: Fri, 20 Jan 2006 10:21:08 -0800
> To: Chas Spillar <email@hidden>
> Cc: Cocoa Dev List <email@hidden>
> Subject: Re: Various UI questions...
>
> Chas,
>
>
> On Jan 19, 2006, at 2:25 PM, Chas Spillar wrote:
>
>> 1) I have a source column as an NSTableView with a single column.  The
>> behavior that I want is for the column and outline of the tableview to
>> track.  That is, resizing the NSTableView should cause the column to
>> fill
>> the view completely.  What I see is that sometimes the column stops
>> resizing
>> automatically.  I see similar behavior in XCode and then the size of
>> the
>> column snaps to the right.  However, iTunes gets this behavior right
>> (the
>> source column just tracks the surrounding view.  What is the magic
>> to get
>> this to work correctly?
>
> Well, there are some small bugs in Tiger that will be fixed. However,
> the best way to ensure this works properly is to ensure that the
> column width is the same width as the tableview. You can generally set
> this up in your awakeFromNib. Be sure to set the resize style to the
> last column, and turn off the horizontal scrollbar.
>
> -corbin


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

This email sent to email@hidden

  • Follow-Ups:
    • Re: Various UI questions...
      • From: Corbin Dunn <email@hidden>
References: 
 >Re: Various UI questions... (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: Custom View inside NSToolbar
  • Next by Date: Mixing C++ with Objective-C
  • Previous by thread: Re: Various UI questions...
  • Next by thread: Re: Various UI questions...
  • Index(es):
    • Date
    • Thread