Re: Invoke IKImageEditPanel for IKImageView without double click?
Re: Invoke IKImageEditPanel for IKImageView without double click?
- Subject: Re: Invoke IKImageEditPanel for IKImageView without double click?
- From: Jamie Phelps <email@hidden>
- Date: Tue, 25 Mar 2008 15:20:27 -0500
Thanks, Glenn. This will also give me more control over the edit
panel's initial position. The "for free" implementation from
IKImageView puts it below the image view. In my GUI, that means it's
off the screen.
Thanks again,
Jamie
On Mar 25, 2008, at 3:15 PM, glenn andreas wrote:
On Mar 25, 2008, at 3:04 PM, Jamie Phelps wrote:
Before I file this as a bug, I wanted to check with the list to see
if there's something I'm missing.
I have an IKImageBrowserView and I want to implement the
-(void)imageBrowser:(IKImageBrowserView *)aBrowser
cellWasDoubleClickedAtIndex:(NSUInteger)index;
delegate method to set the image of an IKImageView and open its
IKImageEditPanel. So, the user double-clicks on a cell in the
IKImageBrowserView and the IKImageView updates with the image at
index and opens the IKImageEditPanel. The documentation doesn't
indicate that there is a method for invoking the IKImageEditPanel
other than through a double click.
So, is this a bug or is there something I'm missing that will allow
me to invoke the edit panel?
Just open it yourself and set its datasource to your view.
Even though IKImageView doesn't explicitly conform to the
IKImageEditPanelDataSource protocol doesn't mean that it isn't a
viable datasource (since it explicitly implements all the methods of
the protocol).
So roughly:
IKImagEditPanel *editor = [IKImageEditPanel sharedImageEditPanel];
[editor setDataSource: myImageView];
[editor makeKeyAndOrderFront: nil];
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | flame : flame fractals & strange attractors : build,
mutate, evolve, animate
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden