Lost my toolbar in Jgrasp how to get it back? - jgrasp

lost my toolbar buttons in Jgrasp I accidentally clicked the "X" button on the thought it was the exit button checked settings but too afraid to click a button that will change the environment again, here's the result,
Thanks!

The toolbar is language specific, so the toolbar goes away unless you have a file open. Since you pressed the X button, the file was closed, and thus, the toolbar went away. If you open up a new file (By clicking the folder icon on the far top left and selecting the previous file), it will bring back the toolbar.

Related

Is there way to close popup when swiping between tabs

I have a popup menu in one tab which not close automatically between swiping from tab to tab. Clicking outside of the popup window closing it, but the swipe is not detected as click so the popup stays on the screen as long as I click outside of it.
Have Googled this issue for a couple hours now with no results.
Can you give me any glue how handle this problem? I want that popup close when swipe, but don't know how.
I added id="somethinghere" for the tab, and for the popup menu element I added attach="somethinghere". Now it is attached to one tab and not following to other tabs, but it is not still closing. But this is better than nothing.

How can I click a button that's only clickable from the bottom half?

So I'm trying to hit this button to activate the dropdown menu, but it seems that only half of it works, Im afraid the automation is clicking the top bottom or somewhere where is not active, let me illustrate with a few screenshots, which will contain a comparisson. ALSO can I click on one of the options from the dropdown without "activating it"? (clicking the DropDown Button)
Now another example from the button fully working
I have found that the button fully works if it's the first one to be clicked, if I click something else, then this issue happens, and that's only button with this issue

keyboard shortcut to jump to cursor

What is the keyboard shortcut to jump the editor view back to where my cursor was last placed?
For example I often scroll to the top or bottom of the editor view other parts of the code, and I would like to be able to quickly jump back to the last section I was viewing.
Scroll to Center looks like what you need.
Ctrl+M on Windows, not set by default on Mac, but can be customized in the Keymap.
If you are not in the editor, you will need to hit Esc first to focus it.
There is also Navigate | Last Edit Location, but will navigate you to the last place you've edited, not just viewed.

NSTextField in statsbar menu becomes unresponsive after clicking outside the menu

I'm building a statusbar menu using custom views, and everything seems to work fine except for text fields. The first time I open the menu, everything works fine. If I close the menu by clicking the statusbar icon again, it also continues to work fine.
If I close it by clicking outside the menu, however, the next time I open the menu the text fields will be completely unresponsive. I can sometimes highlight the NSTextField, and even make the "itemEdited" event happen.
Any ideas on this weird issue? Buttons put on the same view work fine.
I've made a sample project to demonstrate the problem: https://github.com/Nic0S/NSTextField-bug

How to get the Spotlight-like text input effect in menu bar?

I want to have an icon in the menubar in my Mac app - and the icon should spawn a menu upon clicking. While having more entries in the menu, I would like to have a top row as a universal text entry field - like it is in Spotlight:
http://dl.dropbox.com/u/3943878/_mine/Screen%20shot%202011-07-16%20at%2012.29.18.png
Is it possible to add such a field to NSMenu? Or should I do it as a panel-type window?
If you're using xcode 4 , make a custom view in interface builder and add a textfield or anything you want to it. In IB also drag and drop a "Menu" from the objects library with as many items as you want in it. Then simply ctrl+click the menu item you want to make into the text field (In your case it would be the top one) and drag to the custom view and select "view". Now when you open the menu, instead of showing a menu item in that space, it shows whatever was in your custom view.
EDIT: As for your comment here's what you should do. Make your menu an outlet by opening the assistant editor view and ctrl+click from your menu to the header file that you want to use. now, simply make a method that will run whenever the menu will open, conveniently apple already made this, it's called menuWillOpen.
- (void)menuWillOpen: nameOfYourMenu{
[self performSelector:#selector(methodExecutedWhenMenuIsClicked) withObject:nil afterDelay:0.0 inModes:[NSArray arrayWithObject:NSRunLoopCommonModes]];
the delay at 0 will make it happen immediately, it must be done in the common modes run loop so that the menu will be updated even while it's open. Now just make the methodExecutedWhenMenuIsClicked and set it so the text field responds.
- (void)methodExecutedWhenMenuIsClicked{
[[yourTextfiled window] makeFirstResponder:yourTextField];
You can put any view in a menu using -[NSMenuItem setView:]. See the long comment in NSMenuItem.h and the section Views in Menus in Application Menu and Pop-up List Programming Topics.
You're probably going to struggle quite a bit. I just tried doing the same thing, and reading the Views in Menus in Application Menu and Pop-up List Programming Topics document referenced by Ahruman, I found this:
A view in a menu item can receive all mouse events as normal, but keyboard events are not supported. During “non-sticky” menu tracking (that is, manipulating menus with the mouse button held down), a view in a menu item receives mouseDragged: events.
I think we're SOL. Apparently Spotlight pops up a borderless window instead.