• 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: How to implement a "Picture Frame" view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to implement a "Picture Frame" view (From: "Albert Andersen" <email@hidden>)
 >Re: How to implement a "Picture Frame" view (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: How to implement a "Picture Frame" view
  • Next by Date: Re: Tabbing to NSPopUpButtonCells in a table?
  • Previous by thread: Re: How to implement a "Picture Frame" view
  • Next by thread: NSScrollView Resize Problems
  • Index(es):
    • Date
    • Thread