• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Invoke IKImageEditPanel for IKImageView without double click?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Invoke IKImageEditPanel for IKImageView without double click? (From: Jamie Phelps <email@hidden>)
 >Re: Invoke IKImageEditPanel for IKImageView without double click? (From: glenn andreas <email@hidden>)

  • Prev by Date: Plug-in with Window
  • Next by Date: Re: Plug-in with Window
  • Previous by thread: Re: Invoke IKImageEditPanel for IKImageView without double click?
  • Next by thread: Plug-in with Window
  • Index(es):
    • Date
    • Thread