IKImageView, NSScrollView and Locking the image  to the top.

I have an NSScrollView with an IKImageView inside to display images. This seems to work.
However, if I make the window smaller than the image, the scrollbars appear as they should, but the BOTTOM of the image is locked to the bottom of the window, instead of the top of the image being locked to the top of the window. In other words, I want the image to not move on the screen when I re-size the window from the bottom right.
I understand why this is, because in All of these classes, the origin is in the lower left, not the upper left. However, It's still behaving wrong. If you look at any other product (including Preview, which I assume is written with some of these libraries) the image/content/whatever, is locked to the top not the bottom.
How do I do this?
I've looked for methods in the NSScrollView and IKImageView. I've considered capturing the scroller events and manually moving the image down or up as appropriate, but I haven't seen a way to do this (Set the selector to a method I write in the controller?) and anyway, that seems very messy...
Is there an easy way to do this?
thanks.

Brian Postow wrote:
I kind of need the autohide... and actually I couldn't figure out how to turn that off..
Well, I went back in and put your workaround scroller back in and now it seems to be doing what it is supposed to.
One of the things I did a lot with your code was comment out parts. When in doubt, always remove code. Only add new code as a last resort. If you can get it working properly with less code, then you should. I commented out most of the code in that one method where you load the URL and do everything with the imageView and is still worked fine. The only parts you really need are the 3 scrollbar lines. It seems as if the imageview kind of "takes over" the scroll view. But it still has an auto hide but that the scroll view workaround fixes.
Keep the following in mind - IKImageView has obvious bugs with the scrollers. The demo program was written by either the same programmer who wrote IKImageView or maybe even someone more junior. Apple demo code is meant to be an example on how to use APIs. In terms of quality, lots of it is junk. Developer tools just do not get the same level of spit and polish as consumer software.

Similar Messages

  • Problem with unlocking and locking the Materials in MARA using idocs.

    We are sending a inbound idoc from one cluster to the other to update the materials
    If the material is locked ( MARA-MATFI=x ) before it needs to be unlock it  ,update it and lock again .
    If its not locked ,we just need to update it and lock the material .
    When we are trying to implement this the materials are not getting locked at all times .
    the update inbound idoc is being sent to 5 clusters at a time .
    The same material is getting locked in some clusters and some it is not . (But the data is being updated in all the clusters )
    Can you please suggest me a solution or give me an idea where the problem would be lying.

    The client has a Keystone Server where alll the Master data is kept and there are 5 Production Servers .
    When ever there are any updates to the Materials they are first updated in the Keystone server .
    And with the help of a Batch Job they send inbound idocs to the 5 Production Servers.
    On the Production servers if the material in MARA  that needs to be updated is locked ,it needs to be unlocked updated and locked again .
    Hope i have  given u the clear idea of the scenario

  • I disabled my Macbook  Hard Disk and lock the settings, after i try to reboot, the system wouldn't come up. It refuses to read instructions from the hard disk. How can i enable the hard disk when the system wouldn't come up?

    I disabled my Macbook  Hard Disk and lock the settings, after i try to reboot, the system wouldn't come up. It refuses to read instructions from the hard disk. How can i enable the hard disk when the system wouldn't come up?

    How do you disabled it if running the same?

  • If my ipad was stolen, how to register my ipad for the stolen goods, and lock the hardware requirements?

    If my ipad was stolen, how to register my ipad for the stolen goods, and lock the hardware requirements?

    It's really disappointing as a newly converted Apple customer who has already had his iPad stolen, that Apple just sits back and let's this happen. 
    I've viewed a number of posts regarding stolen iPads.  Yes, I did have the "find my iPad" enabled.  That's how I knew when the iPad was gone for good.  It's a useless function in the case of theft because the thieves know how to hack into your iPad.  It disappeared from my list of devices in the "find my iPad" utility that very same day. 
    Apple loves the fact that their devices get stolen all the time!  That way they sell more of them.  Theft could easily be significantly reduced if Apple chose to give users a means to report stolen devices on the Apple site.  They choose not to do this.  If the black market for Apple devices was limited to hackers who know they have a stolen device, the items wouldn't be such a hot commodity!  Apple knows this... I guess they want to get their devices into as many households as they can.... Legally or not. 
    So for all you hard working folks out there, find a way to make sure your Apple products are secure because if they get stolen, you're out of luck.  Apple refuses to help when they could easily do so. 

  • I removed my English keyboard and locked the iPhone in iOS 8 and now I have the iPhone locked on Arabic keyboad

    I removed my English keyboard and locked the iPhone and now the iPhone locked on Arabic keyboard

    Hi Eliasaa,
    You may need to try the directions for changing your keyboard language found in the following article:
    iOS: Using international keyboards
    http://support.apple.com/kb/HT4509
    If this does not resolve your issue, you may need to follow the instructions in this article:
    iOS: Forgot passcode or device disabled
    http://support.apple.com/kb/ht1212
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • I plugged in my iphone 5S and locked the screen 20 minutes later I tried to open the phone it will not turn on i treid reset and that wont work I have a black screen

    i plugged in my iphone 5S and locked the screen 20 minutes later I tried to open the phone it will not turn on i treid reset and that wont work I have a black screen,
    I tried just holding down the power key...NOTHING

    Do a reset, hold down the home/sleep button together until you see the apple logo and then release.

  • HT4628 No matter what I do after selecting my network, when I put the computer to sleep it reopens saying that no network is selected.  I have applied the appropriate network and locked the selection as well as restarted the computer (a windows habit).

    I cannot get this imac to save selected newtwork preference (tried apply and locking the selection to no avail).  My other imac maintains the selection without a problem using the same airport.  The connection works immediately after re-selecting the network from a list of "neighborhood" networks that I have never used.  But once I "sleep" the mac, the dialog states:  no network selected.

    I cannot get this imac to save selected newtwork preference (tried apply and locking the selection to no avail).  My other imac maintains the selection without a problem using the same airport.  The connection works immediately after re-selecting the network from a list of "neighborhood" networks that I have never used.  But once I "sleep" the mac, the dialog states:  no network selected.

  • I have set the CustWiz/MST to 'Disable and Lock' the ability to display PDFs in the browser.  We wan

    I have set the CustWiz/MST to  'Disable and Lock' the ability to display PDFs in the browser.  We want  them to open separately in Acrobat.  After I deploy, the setting IS  disabled and locked, but when you click a PDF in the browser, it STILL  opens in the browser, and not in Acrobat.
    I am pushing  Acrobat onto machines that already have Acrobat Standard 9 installed  with the same settings.  It worked properly then.
    What is causing this setting to be ignored?  How can I fix it?  It's delaying my deployment.
    I have to deploy Acrobat 9 due to the bug I discovered here:
    http://forums.adobe.com/thread/865843
    (With many other frustrating responses).
    This is getting a little irritating...
    Thanks for any input!
    Acrobat Standard X
    XP SP3
    Firefox 5

    Thank you for the answer about updating the Foxit plugin. Firefox tags the Foxit plugin as potentially unstable, so it turns out I had another program killing the plugin's startup process so it was always disabled in firefox. I reenabled its startup process and updated the plugin. To get firefox to use it as the main pdf reader I went to options>applications and changed the option for pdf to the foxit plugin and everything works dandy now! Thanks again!

  • I recently brought an iPhone 5 from a person and their apple id is still on the phone i for got my passcode and locked the phone up. I factory restored the phone and i still need their id to unlock it. how can i bypass the unlock activation

    i recently brought an iPhone 5 from a person and their apple id is still on the phone i for got my passcode and locked the phone up. I factory restored the phone and i still need their id to unlock it. how can i bypass the unlock activation

    You can't. Until the previous owner removes the activation lock, the device is useless to you; Apple won't remove it unless presented with proof that the registered owner is dead.
    (108990)

  • Powercfg sets power plan with never sleep but system goes to sleep and locks the screen

    I created a command (.bat) file that executes 'Powercfg -s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c' where '8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c' is the class name for power option (HighPerf) that sets sleep to never. Then I created a scheduler's task to execute
    this command file at specified time. The goal here is to switch at this time from power option that has sleep in 1 hour (Balanced) to the power option that never sleeps.
    At the designated time the power option changes from Balanced to HighPerf but after some time computer both goes to sleep and locks the screen. I do not know whether this happens at the same time or not. It is just that when I get to my computer some time
    (2 hours) later, it is in the sleep mode (the light on the power button is amber), I need to press the power button to wake it up and when it comes to life I find out that the screen is locked and I need to enter the password.When I open Control Panel it shows
    that HighPerf power option is selected. Yet, the computer went to sleep and the screen got locked.
    All this does not happen when I set HighPerf power option from the Control Panel.
    I am using Dell XPS 8500 desktop with Windows 7 Home Premium, so battery and closed lid settings do not apply as they do not exist on this computer, so those settings are not at issue.
    Thank you
    Isa Ten

    Hi Isa,
    Based on your goal "The goal here is to switch at this time from power option that has sleep in 1 hour (Balanced) to the power option that never sleeps.", why didn't you set the Balanced option to never sleep?
    If you just ant it at one time to switch, you need another task to change back. Otherwise, it keep "never sleep" and "high perf"status.
    Meanwhille, check your hibernate status of these power plan under sleep tab:
    Power Options->Change Plan Settings->Change Advanced settings, you see a tap "Sleep"
    Karen Hu
    TechNet Community Support

  • HT4211 There is an extra dot on the lock screen of my iphone and on the top bar of the phone screen 5 (ex: "10.20."). What should I do?

    There is an extra dot on the lock screen of my iphone and on the top bar of the phone screen 5 (ex: "10.20."). What should I do?

    If you swipe down from that bar, it will pull up your notification center.

  • I have an ipad 2 that is mounted horizontal in the wall. added the iaqualink pool control app. but the app does not have the ability to turn horizontal. is there anyway to manually turn and lock the app.??

    i have an ipad 2 that is mounted horizontal in the wall. added the iaqualink pool control app. but the app does not have the ability to turn horizontal. is there anyway to manually turn and lock the app.??

    Yes.
    http://ipadinsight.com/ipad-basics/how-to-add-a-website-to-your-ipad-home-screen /

  • What version of iPhoto.  iPhoto 11 9.4.3 (720.91) -  What version of the Operating System. OSX 10.8.3 -  Detail.  I Attach my camera and the fields where the photos usually show up are empty and at the top of the screen it says all photos from camera are

    What version of iPhoto. iPhoto 11 9.4.3 (720.91)
    What version of the Operating System. OSX 10.8.3
    Detail.  I Attach my camera and the fields where the photos usually show up are empty and at the top of the screen it says all photos from camera are downloaded. But they are not. They can't be.
    I fixed the problem somewhat myself by removing the miniSD and manually inserting it. It did not populate automatically. I had to open iPhoto and then it populated only the most recent photos I had taken which fortunately were the only ones I need. No error messages this seems to be a new occurrence.
    Is there a way to just turn iPhoto off and download my photos to the folder of my own choosing?

    Sure - in the iPhoto prefercences set action when a camera is ocnnected to Image Capture
    LN
    Note - your cute formatting really does not add anything and makes your post hard to read and follow - try straight typing with no cute formatting in the future

  • I have an iphone4 and in the top right hand corner I have a padlock with an arrow circling it - what does it mean and how do I get rid of it ?

    I have an iphone4 and in the top right hand corner I have a padlock with an arrow circling it - what does it mean and how do I get rid of it ?

    I have just found out it was the orientation lock lol ! Grrrrrrrrr Its puzzled me for weeks !!!!!!!!

  • 've redeemed my itunes card and at the top of the itunes stores it states "$20. in your account" but when i try and purchase a song it still comes up with my billing info and dosent pick up the card at all??

    I've redeemed my itunes card and at the top of the itunes stores it states "$20. in your account" but when i try and purchase a song it still comes up with my billing info and dosent pick up the card at all?? plz help me

    If the amount of the purchase is close to $21.07, then you need to take into account taxes may be added.
    If you go beyond the credit from a gift card the balance will be billed to your credit card account.

Maybe you are looking for

  • Layout not working in IE but fine in all other browsers?

    Hi, I'm probably missing something very simple, but can anyone shed some light on as to why the a coloumn keeps jumping in IE but works & looks as it should in all other browsers. The link to the page in question is below, I have tried fixing the wid

  • Program Modification

    hello experts I have the following ALV report, (ZBB Program) <b>Material Document Listing Report</b> Currently this  report let us  drill down to some transaction where we would see standard costs(Drill down fields are Customer and Mterial number) No

  • Changing focus and highlight of text in item

    Hi I have a field that is displaying messages on the form and I do not have it set to display only because this mucks up the custom colour settings of the text required. A user can navigate into this field but cannot do anything bar highlight the tex

  • How can i convert cassette tapes to a disc

    i want to convert a cassette to my mac and then onto a disc.  How do I do that?

  • Widget Game Not Working

    I downloaded Asteroids and Froggster Widgets. Both show the Quiktime logo with a question mark? I have Quicktime installed and functioning. Any ideas?