Skip navigation.
 
mlRe: Invoke IKImageEditPanel for IKImageView without double click?
FROM : glenn andreas
DATE : Tue Mar 25 21:15:36 2008

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_removed>
  <http://www.gandreas.com/> wicked fun!
quadrium | flame : flame fractals & strange attractors : build, 
mutate, evolve, animate

Related mailsAuthorDate
mlInvoke IKImageEditPanel for IKImageView without double click? Jamie Phelps Mar 25, 21:04
mlRe: Invoke IKImageEditPanel for IKImageView without double click? glenn andreas Mar 25, 21:15
mlRe: Invoke IKImageEditPanel for IKImageView without double click? Jamie Phelps Mar 25, 21:20