I am changing now ... thanks!
On Jul 28, 2009, at 12:10 PM, Erik Buck wrote:
That was the right approach ... one twist, I set the view frame when
drawRect is called to the size of my image.
Don't do that. Do read the documentation. The only thing you
should do in -drawRect: is draw. In pa
That was the right approach ... one twist, I set the view frame when
drawRect is called to the size of my image.
Don't do that. Do read the documentation. The only thing you should do in
-drawRect: is draw. In particular, changing the frame inside drawRect: will
invalidate all or part of th
On Jul 28, 2009, at 1:56 PM, Kyle Sluder wrote:
No, you must not do this.
...
So why would you think to do it in -drawRect:? Do it in
-awakeFromNib, or -[NSWindowController windowDidLoad], or -[NSDocument
windowControllerDidLoadNib:]. These are the places to do post-nib
loading setup.
I
On Tue, Jul 28, 2009 at 10:52 AM, David Blanton wrote:
> Ok, why not? It 'appears' to work properly.
http://www.cocoabuilder.com/archive/message/cocoa/2008/1/29/197499
> I only do it so the untitled file window that appears at startup (which I
> cannot get rid of, see my next post) looks goofy
Ok, why not? It 'appears' to work properly.
I only do it so the untitled file window that appears at startup
(which I cannot get rid of, see my next post) looks goofy with scroll
bar thumbs and no content.
On Jul 28, 2009, at 11:47 AM, Kyle Sluder wrote:
On Tue, Jul 28, 2009 at 10:23 AM
On Tue, Jul 28, 2009 at 10:23 AM, David Blanton wrote:
> That was the right approach ... one twist, I set the view frame when
> drawRect is called to the size of my image.
No, you must not do this.
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@li
That was the right approach ... one twist, I set the view frame when
drawRect is called to the size of my image.
Works great.
Thanks!
On Jul 28, 2009, at 10:01 AM, Graham Cox wrote:
On 29/07/2009, at 1:56 AM, David Blanton wrote:
Is this the correct approach:
In the MyDocument.xib add a
On 29/07/2009, at 1:56 AM, David Blanton wrote:
Is this the correct approach:
In the MyDocument.xib add a scroll view to the window.
At some place in the app instance a view and set this view as the
document view of the scroll view.
Draw into this view.
Scrollers will update etc.
Add
Is this the correct approach:
In the MyDocument.xib add a scroll view to the window.
At some place in the app instance a view and set this view as the
document view of the scroll view.
Draw into this view.
Scrollers will update etc.
Grok?
db
On Jul 28, 2009, at 9:10 AM, David Blanton w