Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Dock Menu, Please! (for use after closing the last window)
Dock Menu, Please! (for use after closing the last window)
 
   NeoOffice Forum Index -> NeoOffice Development
View previous topic :: View next topic  
Author Message
achmafooma
Red Pill


Joined: Mar 10, 2005
Posts: 9

PostPosted: Tue May 31, 2005 10:32 am    Post subject: Dock Menu, Please! (for use after closing the last window)

Excellent about the close-last-window behavior in the new patch! I love it! I only have one [minor] complaint about the implementation of this:

The menu items to make a new document (which are now in the NeoOffice/J program menu) would probably be more useful as a dock menu. Right now, you have to activate the program before you can access them. As a dock menu, you could just right/ctrl-click the NO/J icon to and create a new document without switching to NO/J first.

I would also love to see an option to have NO/J start without a blank document open. Then I could set it as a startup item and have it ready to go when I need it (somewhat like the OpenOffice.org Quickstarter in Windows).
Back to top
kcavaliere
Pure-blooded Human


Joined: Dec 24, 2004
Posts: 34

PostPosted: Tue May 31, 2005 10:56 am    Post subject: Quickstart

I recently loaded OpenOffice on a PC laptop and the Quickstart icon is very handy. Short of that is there a command line switch that will load NeoOffice and then close the only open window, leaving the menu bar (hidden)? Maybe an Applescript? Possibly an Automator action for Tiger users?
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Tue May 31, 2005 2:02 pm    Post subject:

While I agree that a Dock menu would be nice, I believe those sorts of menus are even *less discoverable* than the "appName" menu, so it certainly shouldn't replace the quickstart items in the Neo/J menu.

If you want to start a new document without switching to Neo/J, put copies/aliases of your default templates in your Dock (or in a folder)...see Jake's launch shortcuts for more info.

As I stated in another thread, Mac apps don't launch windowless. You can launch Neo/J and hide it using the AppleScript I mentioned in the other thread. Having it close the blank document window is more problematic, since Neo/J is not scriptable. Presumably if you sent it the raw "close window" AppleEvent it would work (but that exceeds my AppleScript skills); similarly, you might be able to use UI Scripting to click the red globe or invoke cmd-w....

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Tue May 31, 2005 11:43 pm    Post subject:

As far as I can tell, Dock Menus can only be specified using InterfaceBuilder with the AppleDockMenu property. Since we aren't IB based we have the difficulty of not only figuring out how to insert items but also to handle their actions Sad

ed
Back to top
jakeOSX
Ninja
Ninja


Joined: Aug 12, 2003
Posts: 1373

PostPosted: Wed Jun 01, 2005 7:44 am    Post subject:

this is what i make the start folder.. thing.. for. (mental note, think of snazzy name)

basically it is just a folder with blank templates in it for writer, presentation, math and draw. you put it in your dock, and when you right click it has the menu to pick which to use.

now, what i'd prefer to do is wrap that into an applescript so you could drop icons and such as well... but time and stuff.

-j
Back to top
Guest
Guest





PostPosted: Wed Jun 01, 2005 8:45 am    Post subject:

jakeOSX wrote:
this is what i make the start folder.. thing.. for. (mental note, think of snazzy name)

basically it is just a folder with blank templates in it for writer, presentation, math and draw. you put it in your dock, and when you right click it has the menu to pick which to use.

now, what i'd prefer to do is wrap that into an applescript so you could drop icons and such as well... but time and stuff.

-j



That should be easy enough to do, I think, since although NOJ isn't scriptable, the Finder is. I'll play with it tonight and check back in here afterwards.
Back to top
jakeOSX
Ninja
Ninja


Joined: Aug 12, 2003
Posts: 1373

PostPosted: Wed Jun 01, 2005 11:13 am    Post subject:

the problem i had was calling the programs from applescript. for example, in the X11 verison you can call calc specifically (scal)

neo is different, you can't give it an argument. the crude workaround i found was the template thing (in just a normal folder)

i suppose you could have the applescript open the template (which in turn would open neo) when you called it... but that's not a very elogent solution.
Back to top
Guest
Guest





PostPosted: Thu Jun 02, 2005 6:06 am    Post subject:

Jake said:

"neo is different, you can't give it an argument...."

Now that you mention it, I think I did play with NOJ before and found the same thing, which makes sense since NOJ itself is not scriptable. I was talking more about the whole "drag and drop" feature in Mac OS X and how that part is done by the Finder but I can see now that that woundn't be enough to do what you are trying to do which is to open a specific type of document once NOJ is launched. I may or may not now play with it some more. Thanks for the clarification.
Back to top
Guest






PostPosted: Sun Jun 05, 2005 9:56 am    Post subject: Dock Menu looks entirely possible

It looks like there's a simple Java API available to do the Dock Menu thing.
http://weblogs.java.net/blog/joshy/archive/2005/04/sometimes_you_o.html
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Sun Jun 05, 2005 5:34 pm    Post subject:

Good news! I stumbled across the SetApplicationDockTileMenu() Carbon function and with only a couple of extra lines of code, I now also add the Quickstart menu items to the Dock icon's menu.

If you want to check it out, it is in the following test patch:

http://www.planamesa.com/test/NeoOfficeJ-1.1_Release_Candidate-TestPatch-6.5.dmg

Patrick
Back to top
rays
The Anomaly
(earlier version)


Joined: Sep 23, 2004
Posts: 475
Location: Geneva, Switzerland

PostPosted: Sun Jun 05, 2005 8:38 pm    Post subject:

I know some of my colleagues are going to love this little addition as they were not finding the two-step process of click icon in dock then select from NeoOffice/J menu very intuitive. This new dock menu works a charm.

Thanks for another little increment in making the seamlesss integration of OOo.org in Mac OS X a reality!

_________________
Ray Saunders
World Scout Bureau
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Sun Jun 05, 2005 9:29 pm    Post subject:

rays wrote:
I know some of my colleagues are going to love this little addition as they were not finding the two-step process of click icon in dock then select from NeoOffice/J menu very intuitive. This new dock menu works a charm.

Thanks for another little increment in making the seamlesss integration of OOo.org in Mac OS X a reality!


Ditto what Ray said (and his colleagues in Cairo will be pleased with the other gems in TestPatch-6.5 the next time they go to justify text Smile)

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Sun Jun 05, 2005 10:27 pm    Post subject:

sardisson wrote:
Ditto what Ray said (and his colleagues in Cairo will be pleased with the other gems in TestPatch-6.5 the next time they go to justify text Smile)


Now that I have kashida justification working for Arabic, I'll probably push out an official patch tomorrow.

Patrick
Back to top
achmafooma
Red Pill


Joined: Mar 10, 2005
Posts: 9

PostPosted: Mon Jun 20, 2005 12:14 pm    Post subject:

Many thanks for the quick addition! I wrote my original comment just before leaving on my honeymoon, and was thrilled to see the change make it into the product before I got back!

Amazing work, developers! Simply amazing!
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Development All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.