Re: NSBrowser with custom cells
Re: NSBrowser with custom cells
- Subject: Re: NSBrowser with custom cells
- From: Graham <email@hidden>
- Date: Sun, 28 May 2006 07:26:38 -0400
I think you're onto something there, since if I call the
super.drawInteriorWithFrameInView() in my cell then the delegate
method does get called.
Now I have to work out how to cause the delegate method to get called
since the cell knows nothing of the delegate (I am new to Cocoa
programming).
Thanks
G
On May 28, 2006, at 6:56 AM, Lon Giese wrote:
I'm not an expert here, but I don't like to see questions go
unanswered, so I'll give it a shot..
I would surmise, from what you are saying, that the delegate gets
called by the method you are overriding, thus you would have to call
the delegate method yourself in the subclass method...
On May 28, 2006, at 3:46 AM, Graham wrote:
I am writing a Cocoa-Java app.
I have an NSBrowser in which I am placing custom cells, extensions
of NSBrowserCell.
In order to set the display values in the cells I have a
browserWillDisplayCell() method in my browser's delegate. This
method is called fine.
However, I want to customize the drawing for my cells and thus I
tried to override my cells' drawInteriorWithFrameInView() method,
but when I override this method, the browserWillDisplayCell() no
longer gets called in my delegate which seems odd, at least not
until I click on a cell anyway.
Any ideas to my problem? A better way to do it?
Thanks
Graham
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40frontiernet.net
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