trawor / XToDo

Xcode plugin to collect and list the `TODO`,`FIXME`,`???`,`!!!!`
http://imi.im/xtodo
1.54k stars 179 forks source link

Use plugin panel #53

Open AlexIzh opened 9 years ago

AlexIzh commented 9 years ago

Hi, thanks for the great XCode plugin. I created plugin panel. It's a panel like left xcode panel (with a tree of files). I think, your plugin suitable for this panel. It will be very usable and comfortable. And you can move your plugin to PluginPanel very fast and easy. I will be grateful if you look and test it.

https://github.com/AlexIzh/PluginPanel

matkatmusic commented 8 years ago

I would love for this to become included as an option! I tried to figure out how to do it myself after installing PluginPanel, but couldn't get it working.

AlexIzh commented 8 years ago

What does not work? It's old plugin and I did not update it very long (I only add UUID's for Xcode). But, if you or some another guy who has awesome Xcode plugin will want to integrate his plugin to plugin panel, I will work on it (I mean, any help if you need). So, if you can write more about problem, it will be fine. Because jsut now I tested this plugin on the Xcode 7.2.1 and seems like it works

matkatmusic commented 8 years ago

I meant that i couldnt figure out how to modify XToDo source code such that it would load in your panel. On Mar 3, 2016 2:05 PM, "Alex" notifications@github.com wrote:

What does not work? It's old plugin and I did not update it very long (I only add UUID's for Xcode). But, if you or some another guy who has awesome Xcode plugin will want to integrate his plugin to plugin panel, I will work on it (I mean, any help if you need). So, if you can write more about problem, it will be fine. Because jsut now I tested this plugin on the Xcode 7.2.1 and seems like it works

— Reply to this email directly or view it on GitHub https://github.com/trawor/XToDo/issues/53#issuecomment-191917259.

AlexIzh commented 8 years ago

Oh, sorry. REAMDE is not clear :( You should move PluginPanelClient folder into your plugin Xcode proj. Then you should create your main NSViewController and image(if needed) and set it to DVChoice (as in example in README). And after that you should call

PluginPanelAddPlugin(choice, [[note userInfo] objectForKey:PluginPanelWindowNotificationKey]);

I updated README and I hope it will more helpful now

matkatmusic commented 8 years ago

The readme was clear. The problem is that XToDo doesnt have an (id)init method like your readme shows. It has a couple initWith... Methods tho. Did you happen to get XToDo to work with your pluginPanel? If so, I'd love to see that. On Mar 3, 2016 3:04 PM, "Alex" notifications@github.com wrote:

Oh, sorry. REAMDE is not clear :( You should move PluginPanelClient folder into your plugin Xcode proj. Then you should create your main NSViewController and image(if needed) and set it to DVChoice (as in example in README). And after that you should call

PluginPanelAddPlugin(choice, [[note userInfo] objectForKey:PluginPanelWindowNotificationKey]);

I updated README and I hope it will more helpful now

— Reply to this email directly or view it on GitHub https://github.com/trawor/XToDo/issues/53#issuecomment-191939728.

AlexIzh commented 8 years ago

I tried integrate just now. I have some result: screen shot 2016-03-04 at 00 49 38

Source you can find here: https://github.com/AlexIzh/XToDo

But it's a test only. It has some problems with layout's. To see TODO plugin you need install time plugin too (https://github.com/AlexIzh/TimePlugin) and after Xcode is started, click to time plugin and then to todo plugin. Then you will see something like on the my screenshot.

Regarding plugin panel: You need NSViewController which will be showed in panel. And the PluginPanel manually calculates frames for views (without autolayout's, so, there can be problems too)

matkatmusic commented 8 years ago

Wow that is awesome!! Nice work! I'll definitely investigate when i get home. I know xcode can show TODOs in the method navigator at the top of a window, but having it consolidated like this is so much better On Mar 3, 2016 3:58 PM, "Alex" notifications@github.com wrote:

I tried integrate just now. I have some result: [image: screen shot 2016-03-04 at 00 49 38] https://cloud.githubusercontent.com/assets/2103547/13509101/4396c81e-e1a3-11e5-953e-275d46a18a5e.png

Source you can find here: https://github.com/AlexIzh/XToDo

But it's a test only. It has some problems with layout's. To see TODO plugin you need install time plugin too ( https://github.com/AlexIzh/TimePlugin) and after Xcode is started, click to time plugin and then to todo plugin. Then you will see something like on the my screenshot.

Regarding plugin panel: You need NSViewController which will be showed in panel. And the PluginPanel manually calculates frames for views (without autolayout's, so, there can be problems too)

— Reply to this email directly or view it on GitHub https://github.com/trawor/XToDo/issues/53#issuecomment-191959904.