how to hook into preferences

View: New views
2 Messages — Rating Filter:   Alert me  

how to hook into preferences

by Roberto Saccon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have seen that for example the SVNMate plugin hooks into the
preferences and add their own tab.

Does there exist a recommended way of adding such a custom tab or can
anybody point me to some source-code where I can see how this can be
implemented ?

regards
--
Roberto Saccon
http://rsaccon.com
_______________________________________________
textmate-plugins mailing list
textmate-plugins@...
http://lists.macromates.com/mailman/listinfo/textmate-plugins

Re: how to hook into preferences

by Ciarán Walsh-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There really are no recommended ways to do anything ;)

In fact I’d recommend against it as it’s pretty messy (you need to  
swizzle all the toolbar delegate methods). The clock example plug-in  
shows how to add an item to the Window menu and open a window from a  
nib when it’s clicked – that’s generally what people do for their plug-
ins.

On 6 Dec 2007, at 06:29, Roberto Saccon wrote:

> I have seen that for example the SVNMate plugin hooks into the
> preferences and add their own tab.
>
> Does there exist a recommended way of adding such a custom tab or can
> anybody point me to some source-code where I can see how this can be
> implemented ?
>
> regards
> --
> Roberto Saccon
> http://rsaccon.com
> _______________________________________________
> textmate-plugins mailing list
> textmate-plugins@...
> http://lists.macromates.com/mailman/listinfo/textmate-plugins

_______________________________________________
textmate-plugins mailing list
textmate-plugins@...
http://lists.macromates.com/mailman/listinfo/textmate-plugins