Re: NSImageView vs IKImageView

2011-08-07 Thread Ken Thomases
On Aug 7, 2011, at 7:17 AM, Graham Cox wrote: > Your implementation seems to be built on faulty assumptions about how > views/windows work, which in turn suggests you haven't read the documentation: > > http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CocoaViewsGuide/Introd

Re: NSImageView vs IKImageView

2011-08-07 Thread James Merkel
On Aug 7, 2011, at 5:17 AM, Graham Cox wrote: On 07/08/2011, at 4:56 PM, James Merkel wrote: updating of some text boxes in the same window. But I have fixed that. I just needed an update method for the window No you don't. Updating a text box is also automatic. There's almost never

Re: NSImageView vs IKImageView

2011-08-07 Thread Graham Cox
On 07/08/2011, at 4:56 PM, James Merkel wrote: > updating of some text boxes in the same window. > But I have fixed that. I just needed an update method for the window No you don't. Updating a text box is also automatic. There's almost never a reason to "update a window", views that come from

Re: NSImageView vs IKImageView

2011-08-06 Thread James Merkel
On Aug 6, 2011, at 6:26 PM, Graham Cox wrote: On 06/08/2011, at 10:44 PM, James Merkel wrote: True, I could just update the window. But that seemed like more work than just going through the closing/opening cycle. If this seems even remotely true, you're surely doing it wrong. Incident

Re: NSImageView vs IKImageView

2011-08-06 Thread Graham Cox
On 06/08/2011, at 10:44 PM, James Merkel wrote: > True, I could just update the window. But that seemed like more work than > just going through the closing/opening cycle. If this seems even remotely true, you're surely doing it wrong. Incidentally, IKImageView/NSImageVIew should handle this

Re: NSImageView vs IKImageView

2011-08-06 Thread James Merkel
On Aug 6, 2011, at 3:58 AM, Graham Cox wrote: On 06/08/2011, at 7:07 AM, James Merkel wrote: In my app, I accept edits in a window, save the edits to a file, close the window, then reopen the window to show the changes. With an NSImageView, you get an annoying flash when the window closes

Re: NSImageView vs IKImageView

2011-08-06 Thread Graham Cox
On 06/08/2011, at 7:07 AM, James Merkel wrote: > In my app, I accept edits in a window, save the edits to a file, close the > window, then reopen the window to show the changes. > With an NSImageView, you get an annoying flash when the window closes and > then opens again. > With an IKImageVie

NSImageView vs IKImageView

2011-08-05 Thread James Merkel
As a follow on to a previous thread on thumbnails, I finally settled on using Image I/O for creating a thumbnail from a file using a CGImageRef. However I could still use an NSImageView or an IKImageView to display the image. NSImageView requires converting the CGImageRef to an NSImage, with