Applying inline styles to a WebKit - Cocoa application.
Applying inline styles to a WebKit - Cocoa application.
- Subject: Applying inline styles to a WebKit - Cocoa application.
- From: Gustavo Pizano <email@hidden>
- Date: Mon, 16 Nov 2009 11:35:16 +0100
Hello and sorry if this is not the list to ask this.
Im making a simple webkit-cocoa app that mainly will retrieve prebuilt layouts (HTML pages) and components(div, span etc) form a server, and shows them in the application in a panel, then I will drag the layout and start placing inside components.
Now i have set a WebView, it loads the webarchive and urls, now im gonna try to load with NSData methods(Due that im fetching form a DB)
Im thinking, that after dragging a component into the selectred layout, I want to edit some CSS styles, (not all, this is a very VERY simple app) of the component, like width, font, and others, so how do I place those CSS styles I will apply to the Component to be inline styles? then I save the file as a HTML, and send it back to the server?
I saw the method replaceSelectionWithMarkupString: , in the WebView class, but also I saw the methods for setting CSS properties. Which one should I use, what happens, and where will be stored the styles if I use the CSS properties methods from WebView?
Thanks. a lot.
Any guidance that will show me a path to tae will be really appreciate it, and if this is not the list to post this, let me know I will place it in the webkit list, just that I think that list if for people that are developing something with the SDK.
Regards
Gustavo
_______________________________________________
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