• 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: NSImageView scrolling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImageView scrolling


  • Subject: Re: NSImageView scrolling
  • From: Jan Van Tol <email@hidden>
  • Date: Sat, 28 Sep 2002 17:26:33 -0500

On Saturday, September 28, 2002, at 03:26 PM, Jeremy Dronfield wrote:


I think the best course of action would be for you to do an image app tutorial. There's one that meets your requirements at

http://macdevcenter.com/pub/ct/37

Choose the Working With Bitmap Images tutorial. As well as the necessary code, you'll find all the technical details nicely > explained.


Okay, I've almost got this working, but I'm sure I'll figure it out now. However, the image is still anchored to bottom-left corner. I compiled the program in the Working With Bitmap Images tutorial, and it had the same problem. I've looked through the docs for NSImageView, and all I see is setImageAlignment, which has no effect for me.
Ok, I think I see why it has no effect now. setImageAlignment specifies where in the frame the image should be located, but since the frame is calculated to equal the size of the image, this has no effect. So how do I center the NSImageView in the NSScrollView?


-Jan Van Tol
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSImageView scrolling
      • From: Marco Binder <email@hidden>
References: 
 >Re: NSImageView scrolling (From: Jeremy Dronfield <email@hidden>)

  • Prev by Date: Re: Sending boolean value via XML-RPC using WebServicesCore.framework
  • Next by Date: Re: sub classing NSTableView
  • Previous by thread: Re: NSImageView scrolling
  • Next by thread: Re: NSImageView scrolling
  • Index(es):
    • Date
    • Thread