Re: Repost: NSTableView headaches (please help!)
Re: Repost: NSTableView headaches (please help!)
- Subject: Re: Repost: NSTableView headaches (please help!)
- From: Dave Thorup <email@hidden>
- Date: Wed, 30 Jul 2003 11:44:08 -0600
On 7/30/03 11:01 AM, "Brad Peterson" <email@hidden> wrote:
>
As you can imagine, this is quite frustrating... So... short of me posting
>
all of the code here (which I really can't, even if it were practical)... is
>
there anyone on this list who has either...
>
>
(a) seen this kind of behavior before and knows what I"m missing? or...
>
(b) can help me fake a resize event so that the window will kindly repaint
>
itself as I'd like?
>
>
I'll take either at this point as my head really hurts and I don't see an
>
answer in sight.
Brad,
The reason you probably didn't get any replies before is because you're
going to have to give us more information. You haven't even told us what
the NSTableView code you inherited is supposed to do. Is it a subclass of
NSTableView? a data source implementation? a delegate implementation? does
it override some or all of NSTableView's drawing methods? etc.
I can only guess that it's some subclass of NSTableView that does some
custom drawing. If that's the case, then whoever wrote it did it the wrong
way, or you are using it the wrong way. You don't need to "fake a resize
event," you only need to fix the code that isn't working.
If you'll allow me to venture further into the area of telepath then I'd
guess that you're trying to get a TableView with alternating row colors
(like iTunes). This is a common question that many people have about
TableViews and you'll find the answer on how to do that here:
http://www.cocoadev.com/index.pl?AlternatingRowColors
Read the ENTIRE article! And don't start coding until you've read
everything. This discussion goes through many ways on how to implement
alternating row colors (most are wrong). You'll need to read the whole
thing to get something that works properly.
____________________________________
Dave Thorup
Software Engineer
email@hidden
www.kuwan.net
Defaults Manager - The premier editor for Mac OS X's User Defaults /
Preferences database.
_______________________________________________
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.