Re: How to edit/resize embedded graphics and images in a NSTextView ?
Re: How to edit/resize embedded graphics and images in a NSTextView ?
- Subject: Re: How to edit/resize embedded graphics and images in a NSTextView ?
- From: Anders Sommer Lassen <email@hidden>
- Date: Thu, 13 May 2010 17:38:56 +0200
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. (I guess, this is what IB does behind the scene, when enabling "Image Editing" ).
Now, I think that I will have to override some methods in the two classes you mentioned to get the resize handles visible.
Kind regards,
Anders Lassen
On Apr 17, 2010, at 6:29 AM, Chaitanya Pandit wrote:
> 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, 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)setAllowsImageEditing:(BOOL)
>>
>> Which I have set to YES.
>>
>> The documentation for this property states:
>>
>> "Indicates whether image attachments should permit editing of their images."
>>
>> But when I select the embedded objects nothing happens (I hoped to see a resize handle when I clicked the embedded image).
>>
>> Any suggestions are welcome.
>>
>>
>> Kind regards,
>>
>> Anders Lassen
>>
>> _______________________________________________
>>
>> 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
>
_______________________________________________
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