Re: Centering an Image in an NSScrollView
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.