• 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: Centering an Image in an NSScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Centering an Image in an NSScrollView


  • Subject: Re: Centering an Image in an NSScrollView
  • From: Matt Neuburg <email@hidden>
  • Date: Wed, 3 Jul 2002 18:03:13 -0700

On Mon, 01 Jul 2002 09:54:36 +0200, jean-michel daix <email@hidden> said:

>As I think many people, I'm trying to centering an Image in a document based
>application using an NSScrollView

What I do is to turn on the ScrollView's setPostsFrameChangedNotifications
and then catch the NSViewFrameDidChangeNotification. When you get one, it
suffices to resize the document appropriately (by "document" I mean here
the custom NSView inside the scrollview). m.
--

matt neuburg, phd = email@hidden, http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
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.

  • Prev by Date: Re: Creating Windows Programatically
  • Next by Date: Re: [NSOpenPanel openPanel] problems
  • Previous by thread: Re: Centering an Image in an NSScrollView
  • Next by thread: Re: NSCopyBits and expose events
  • Index(es):
    • Date
    • Thread