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

Re: NSTableView


  • Subject: Re: NSTableView
  • From: Jerry Krinock <email@hidden>
  • Date: Sun, 22 Feb 2004 22:04:12 -0800

I just checked my application and it has exactly the same problem as
David's, but it's not consistent. Sometimes the buttons show up in the
scrollbar, and sometimes they don't. Haven't figured it out yet.

I call -reloadData at the end of the function:

tableView:(NSTableView *)aTableView setObjectValue:anObject
forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex

which is the callback I wrote. The system calls this whenever the user
modifies any entry. So, yes, -reloadData is being called.

Also, my application is not multithreaded, at least as far as I know. (I
don't know how to make a multithreaded application!)

I probably won't have time to work on it for a couple days.

Maybe I should have taken the time to use Bertil's ListView class instead.

Jerry


on 04/02/22 10:05, j o a r at email@hidden wrote:

> I don't think that you can / should call reloadData from a non-main
> thread. Are you doing that? If this is the case you can schedule the
> main thread to reload data with the "perform*" messages found in
> NSObject.
>
> j o a r
>
> On 2004-02-22, at 17.33, David Blanton wrote:
>
>> Problem: NSTableView does not display scroll bars.
>>
>> Archive says: This is a common problem. You must send a reloadData
>> message
>> to the NSTableView for scroll bars to be displayed.
>>
>> Result: The NSTableView is displayed with a scroll bar. It does get
>> the
>> reloadData message as well as the setNeedsDisplay:YES message. There
>> are
>> more rows in the table than can be displayed yet there is no knob in
>> the
>> scroll bar.
>>
>> Question: What the heck am I not doing?
>
> [demime 0.98b removed an attachment of type application/pkcs7-signature which
> had a name of smime.p7s]
> _______________________________________________
> 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.
_______________________________________________
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.

References: 
 >Re: NSTableView (From: j o a r <email@hidden>)

  • Prev by Date: Re: New to Objective-C/Cocoa Programming
  • Next by Date: NSTableView [solved]
  • Previous by thread: Re: NSTableView
  • Next by thread: Speed comparison: compare:, methodForSelector: & CFNumberCompare()
  • Index(es):
    • Date
    • Thread