• 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
SOLVED NSTableView Restoring State
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SOLVED NSTableView Restoring State


  • Subject: SOLVED NSTableView Restoring State
  • From: "Phil Dow" <email@hidden>
  • Date: Fri, 02 Dec 2005 10:39:31 +0000

Was calling sizeToFit which 10.4 didn't seem to mind but 10.3.9 hickuped on.

-Phil


> -------Original Message-------
> From: Phil Dow <email@hidden>
> Subject: Re: NSTableView Restoring State
> Sent: 01 Dec '05 14:57
>
> Already checked, according to the nib the option will be ignored on OS versions prior to 10.4. As far as I understand that, it means the option should not alter table view behavior in any way under 10.3.9. Thinking that this may have something to do with the problem, at awakeFromNib I am calling the table's setAutoresizesAllColumnsToFit method passing YES, but only if the user is running 10.3.9. This does not alleviate the problem.
>
> -Phil
>
>
> >  -------Original Message-------
> >  From: I. Savant <email@hidden>
> >  Subject: Re: NSTableView Restoring State
> >  Sent: 01 Dec '05 13:50
> >  
> >  Phil:
> >  
> >     Check out the "Nib" tab in your nib in Interface Builder. Look at  
> >  the "Oldest Target" section. I think the uniform resizing option is  
> >  10.4 only, but I may be mistaken; I know 10.4 adds some things to  
> >  NSTableView but I'm too lazy to look up what those are exactly. The  
> >  docs will help you there. ;-)
> >  
> >  --
> >  I.S.
> >  
> >  
> >  On Dec 1, 2005, at 7:56 AM, Phil Dow wrote:
> >  
> >  > I am compliing an application in 10.4 but allowing it to run on  
> >  > 10.3.9. The application includes an NSTableView which I am setting  
> >  > up in IB. For the resizing mode, I am selecting the uniform  
> >  > resizing option. I have set an autosave name for the table. Most  
> >  > but not all of the table's columns can be resized. Columns can be  
> >  > added and removed as needed, which I accomplish by retaining the  
> >  > columns in my controller's awakeFromNib and then using starting  
> >  > table view add and remove methods as needed.
> >  >
> >  > When a user changes the width of a table column and the quits the  
> >  > application, the table column's width is preserved, as it should  
> >  > be. That is, however, only the case in 10.4. Under a 10.3.9  
> >  > environment, if a user changes the width of a column and then  
> >  > restarts the app, the changes are lost. Column reordering is  
> >  > preserved in both 10.4 and 10.3.9, but in 10.3.9 when a column is  
> >  > moved, say, from position 2 to position 1, the column takes on the  
> >  > width of the column that had been in position 1.
> >  >
> >  > Is there some kind of bug that prevents a table setup in 10.4 IB  
> >  > from properly functioning in 10.3.9?
> >  >
> >  > -Phil
> >  >  _______________________________________________
> >  > Do not post admin requests to the list. They will be ignored.
> >  > Cocoa-dev mailing list      (email@hidden)
> >  > Help/Unsubscribe/Update your Subscription:
> >  > 40gmail.com
> >  >
> >  > This email sent to email@hidden
> >  
> >  
> _______________________________________________
> 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
>
_______________________________________________
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

  • Prev by Date: Re: NSSearchField _sendPartialString exception
  • Next by Date: Re: A simple question about nsthread
  • Previous by thread: Re: Switching international keyboards programmatically
  • Next by thread: [OT] What happened to Stepstone?
  • Index(es):
    • Date
    • Thread