Re: Rm w/o (control)vu
Re: Rm w/o (control)vu
- Subject: Re: Rm w/o (control)vu
- From: Lance Drake <email@hidden>
- Date: Thu, 8 Jul 2004 18:43:15 -0600
Hi Pascal,
Thanks so much for your response to my question. Experiments have
been conducted on both platforms
Have you checked first what's the return value of [imageview cell] on
both platform ?
Yes, A 'reasonable' number appears in response to [imageview cell] for
both systems - it's the contentView value for the cell that's the
problem. I also tried adding an NSImage to the NSImageView and then
asking for the contentView and still get zero as a result. The docs
say,
(from NSCell docs in AppKit.pdf)
'Returns the view (normally an NSControl) in which the receiver was
last drawn or nil if the receiver has no control view (usually because
it hasnt yet been placed in the view hierarchy).'
A difference of results at that level may be the result of a different
way of creating the underlaying cell, for example 10.2.8 may delay the
creation of the cell until really needed to draw... or after setImage
has been called... You may also have hit a minor bug or a feature of
10.2.8 that is resolved in 10.3...
I do believe you are correct on the point that the 10.2.8
implementation was tweaked into a better place for 10.3. However -
even performing a 'setImage' call does not do the trick because I
believe the actual drawing has to take place (as per above).
The good thing is that I have several other NSImageViews working in the
app and I think what is the solution may be to change the order in
which I do things. Right now I am creating the NSImageView as part of
the initialization of an object and trying to pass back the controlView
so the NSImageView can be added to another view. It sounds like that's
not a good idea (well, it certainly isn't working for me in 10.2.8) and
it's time to adjust the rudder so I can move on.
Thanks much!
Lance Drake
_______________________________________________
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.