Hello Alastair. In fact I found a example and it shows something applying a css style, so I will see how can I port that to my app, it will be on wednesday the first priority task.
Simplifying, the create a DOMElement variable, get the element form the DOMDocument, and then the do something like : [[domDoc style] setFontFamily:@"Lucida Grande"] something like that.. so I was checking (after a lot of searching for the WebKit api) that I can set any DOMCSSStyle to the DOMElement and as I saw in the code, it places it inline . I will keep informed of my progress, Gustavo On Nov 16, 2009, at 3:09 PM, Alastair Houghton wrote: > On 16 Nov 2009, at 10:35, Gustavo Pizano wrote: > >> Hello and sorry if this is not the list to ask this. > > I think WebKit does have its own mailing lists, but I can't think why the > Cocoa part of WebKit would be off topic here... > >> 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? > > However, while you might be lucky as lots of people follow cocoa-dev and may > already know the answer, you don't say whether you've tried either of these > approaches. I think your best bet for a fast answer is actually to write a > short test program that does both of the above things and see what works. > > Kind regards, > > Alastair. > > -- > http://alastairs-place.net > > > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com