Re: How to implement a "Picture Frame" view
Re: How to implement a "Picture Frame" view
- Subject: Re: How to implement a "Picture Frame" view
- From: "Albert Andersen" <email@hidden>
- Date: Tue, 8 May 2007 12:28:33 -0700
I actually did that programmatically, because I couldn't find a way to
do it in IB.
In a manager's awakeFromNib method:
PictureFrameView *newFrame = [[PictureFrameView alloc] initWithFrame:~];
[newFrame setDocumentview:[scrollView documentView]];
[scrollView setContentView:[newFrame];
a breakpoint on PFV's drawRect method is never tripped.
-Albert
On 5/8/07, I. Savant <email@hidden> wrote:
On 5/8/07, Albert Andersen <email@hidden> wrote:
> 1) subclassed NSClipView, and changed drawRect to call [super
> drawRect:] and then draw the picture frame. My custom drawRect method
> was never called.
If I understand what you're trying to do, this is, I believe, the
way to go. That your subclass's -drawRect: method didn't get called
tells me your scroll view likely wasn't using your subclass, but
NSClipView itself. You'd need to replace the standard clip view with
your subclass.
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden