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
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 mails | Author | Date |
|---|---|---|
| Jamie Phelps | Mar 25, 21:04 | |
| glenn andreas | Mar 25, 21:15 | |
| Jamie Phelps | Mar 25, 21:20 |






Cocoa mail archive

