🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
2 messages
2 total messages Started by Michael Glenn Fri, 14 Aug 1992 12:40
Updating workspace file viewer.
#1136
Author: Michael Glenn
Date: Fri, 14 Aug 1992 12:40
25 lines
1620 bytes
I apologize if this is a FAQ or has been asked before.  If it is a FAQ,  
just tell me so. :)

I have (am writing) an application that will launch when files with the  
appropriate extension are double-clicked from the file viewer.  The  
program will usually create/remove files in the same directory as the file  
being opened, but the file viewer doesn't update itself right away to show  
the changes in the directory.  It *does* work fine if I open a file via an  
Open Panel from within the application.  After selecting the file this  
way, the file viewer immediately fixes itself.  So, I'm looking for two  
things:

1) An explanation as to why there is any difference here...

2) How to "poke" the workspace manager to tell it that it needs to update  
the file viewer.

Ok, second question thread:  Is there a convenient way of specifying more  
than three document file extensions for a single application?  I can do so  
by modifying the Makefile (DOCICONS and ICONSECTIONS) and then modifying  
the .iconheader file.  But this seems the wrong way, as the IB will  
overwrite these...  From inside the IB, it seems to allow only 3.

Michael Glenn (fermat@fermat.dartmouth.edu - NeXT mail welcome!)
Re: Updating workspace file viewer.
#1144
Author: John Robison
Date: Fri, 14 Aug 1992 17:31
25 lines
1070 bytes
Michael Glenn writes
> 
> 2) How to "poke" the workspace manager to tell it that it needs to  
update  
> the file viewer.
> 
I saved the posting from Scott Meyer, cause I knew it would come
in handy. He suggests this (for 2.0):

   {
      id  speaker;

      speaker = [NXApp appSpeaker];
      [speaker setSendPort:NXPortFromName(NX_WORKSPACEREQUEST, NULL)];
      msg_status = [speaker performRemoteMethod:"updateViewers"];
   }

Regards,

John
-- 
John Robison - john@oceania.com
NeXTMail Gladly Accepted
--> What I say has absolutely nothing to do with
my employer. They don't even know I am posting. <--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads