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

Re: setControlView broken?


  • Subject: Re: setControlView broken?
  • From: Mike Abdullah <email@hidden>
  • Date: Sat, 15 Apr 2006 16:34:30 +0100

Doh!

I looked at that and somehow failed to read the bit about returning nil :(
Apologies everyone.


Mike.

On 15 Apr 2006, at 14:14PM, Andreas Mayer wrote:


Am 15.04.2006 um 14:41 Uhr schrieb Mike Abdullah:

Now as is, when I call controlView from the cell, I get null.

This is documented:

"controlView
Implemented by subclasses to return the NSView last drawn in (normally an NSControl).


- (NSView *)controlView

Discussion

The default implementation returns nil."

But, if I override setControlView: and controlView to store the view myself, then everything works perfectly. So does this mean that setControlView: simply doesn't work?

Yes. You have to overwrite and implement -setControlView: and - controlView yourself.



Andreas
_______________________________________________
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
References: 
 >setControlView broken? (From: Mike Abdullah <email@hidden>)
 >Re: setControlView broken? (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: Running out of process VM
  • Next by Date: Re: Adjusting appearance of dragImage? (Uli Kusterer, August Trometer)
  • Previous by thread: Re: setControlView broken?
  • Next by thread: Adjusting appearance of dragImage?
  • Index(es):
    • Date
    • Thread