• 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: Cocoa WebKit Editing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa WebKit Editing


  • Subject: Re: Cocoa WebKit Editing
  • From: Rick Langschultz <email@hidden>
  • Date: Tue, 11 Sep 2007 19:08:24 -0500

Here is some sample code:

@implementation MYApplicationController
- (void)awakeFromNib {
	[documentView setEditable:YES];
}

I don't see a reason why this is a problem. documentView is connected to a WebView. I will read some more documentation, and peer over some more code.
Thanks for the reply.


On Sep 11, 2007, at 6:30 PM, Andrew Merenbach wrote:

Hi, Rick,

I may be overlooking something else, but you'll probably want to use -setEditable: in -awakeFromNib, rather than -init. Until - awakeFromNib, you have no guarantee that the object has been unarchived yet from the nib.

Cheers,
    Andrew

On Sep 11, 2007, at 3:24 PM, Rick Langschultz wrote:

Hello Everyone,

I was wondering if there were any good examples of how to enable editing inside a WebView? I have looked in the Developer/Examples folder on my local machine and it seems that Blot is a pretty good example. But when I add an Outlet to MyDocument and connect it to the appropriate WebView, and setEditable in the - (id)init, it doesn't seem to set the editing feature. Am I doing something incorrectly? or should I create a controller and setEditable in - (void)awakeFromNib?

If anyone can provide step by step instructions or a PDF, or other resource I can read I would greatly appreciate it.

Rick Langschultz
_______________________________________________

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


References: 
 >Cocoa WebKit Editing (From: Rick Langschultz <email@hidden>)
 >Re: Cocoa WebKit Editing (From: Andrew Merenbach <email@hidden>)

  • Prev by Date: Re: Cocoa WebKit Editing
  • Next by Date: Re: Questions for a new mac developer...
  • Previous by thread: Re: Cocoa WebKit Editing
  • Next by thread: Outline view spontaneously collapsing
  • Index(es):
    • Date
    • Thread