Re: How to edit/resize embedded graphics and images in a NSTextView ?

2010-05-13 Thread Anders Sommer Lassen
Thanks, I think this was helpful. On May 13, 2010, at 6:02 PM, Kyle Sluder wrote: > On Thu, May 13, 2010 at 8:38 AM, Anders Sommer Lassen > wrote: >> Now, I think that I will have to override some methods in the two classes >> you mentioned to get the resize handles visible. > > There are no r

Re: How to edit/resize embedded graphics and images in a NSTextView ?

2010-05-13 Thread Kyle Sluder
On Thu, May 13, 2010 at 8:38 AM, Anders Sommer Lassen wrote: > Now, I think that I will have to override some methods in the two classes you > mentioned to get the resize handles visible. There are no resize handles. The code simply doesn't exist in the text system. You will be writing quite a

Re: How to edit/resize embedded graphics and images in a NSTextView ?

2010-05-13 Thread Anders Sommer Lassen
Hi, When I noticed that IB has a control called "Image Editing" for the NSTextView, I hope that this was going to be easy. Later on I discovered, that I have to do more. As I mentioned in my email, I have tried to set the property >> -(void)setAllowsImageEditing:(BOOL) but this did not help.

Re: How to edit/resize embedded graphics and images in a NSTextView ?

2010-05-12 Thread Chaitanya Pandit
NSTextView by default won't allow you to resize the media objects, these media objects are actually NSTextAttachments displayed in NSTextAttachmentCells. Thanks, Chaitanya On May 12, 2010, at 10:27 PM, Anders Sommer Lassen wrote: > Hi, > > I want to embed graphics and images in a NSTextView,

How to edit/resize embedded graphics and images in a NSTextView ?

2010-05-12 Thread Anders Sommer Lassen
Hi, I want to embed graphics and images in a NSTextView, and hopefully support resizing of these embedded object. So far, I can embed an image object in my NSTextView, but I cannot figure out, how to make editing of the object possible. The NSTextView has a property called: -(void)setAllowsIm