• 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] RE: TableView crash when scrolling to out of view rows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED] RE: TableView crash when scrolling to out of view rows


  • Subject: [SOLVED] RE: TableView crash when scrolling to out of view rows
  • From: "Barrett Conrad" <email@hidden>
  • Date: Thu, 11 Mar 2004 14:48:05 -0600
  • Thread-topic: [SOLVED] RE: TableView crash when scrolling to out of view rows

Doh!



Short and simple explanation: In my data source I sent a string a
+stringWithString instead of a -initWithString. Yeah that doesn't work
too well when you need to refer back to it, now does it?



Thanks for all the help though.



-----Original Message-----
From: Denis Stanton [mailto:email@hidden]
Sent: Thursday, March 11, 2004 2:23 PM
To: Barrett Conrad
Cc: email@hidden
Subject: Re: TableView crash when scrolling to out of view rows



Barrett



You haven't said what the crashing error is.



I had something similar that was caused by me failing to retain some
object that was required to calculate the table rows. The unretained
object was surviving long enough for the application to display the
initial visible rows, but by the time I clicked on the arrow it had
released itself so attempting to calculate the next row as I scrolled
would fall over.



Denis



On 12/03/2004, at 8:10 AM, Barrett Conrad wrote:



Hi list,



I have what seems to be a fully functional NSTableView (i.e. I
have

no other problems with it) that will crash when you try and
scroll or

arrow down to the rows that are out of view. In other words I
have a

table that is only big enough to show about 6 rows, but in
actuality

holds ten (I can see the start of the top of the seventh and can
verify

there others are there). If I select a visible row and arrow
down to

the seventh, the app either crashes or beach balls then crashes.
Oddly

the table doesn't start out with a scroll bar unless you resize
the

window. Using the scroll bar crashes the app as well. Also, if I
use

IB to resize the table to a size that I know is big enough to
view all

the rows everything works just fine.





Thanks as always,



barrett.

_______________________________________________

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.



Denis Stanton

email@hidden

Home: +64 9 533 0391

mobile: +64 21 1433622
_______________________________________________
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.


  • Prev by Date: stylistic question (dotted outline)
  • Next by Date: NSImageView drawing the NSImage...
  • Previous by thread: Re: stylistic question (dotted outline)
  • Next by thread: NSImageView drawing the NSImage...
  • Index(es):
    • Date
    • Thread