Re: [Interfacewm-discuss] Re: [Simplygnustep-discuss] GSDock and interfacewm interaction
Status: Alpha
Brought to you by:
cehardin
From: Chad H. <ceh...@ma...> - 2003-06-04 19:17:47
|
Mondragon, Ian wrote: >chad, > > the client's unique id, mainly. here's a theoretical example using the >typical dock example. > >--- IWM's responsibilities --- > >1. you open an xterm, which creates a new IWM client >2. this generates a notification of the new client's existance for anything >listening >3. the userInfo dictionary posted along with this notification would contain >a reference to the unique id of the client, and also anything else that >could be pertinent (icon image data, etc.) > Ahh, I see, we're thinking along two different lines here. I was only thinking of how to handle GNUstep apps, as such, I would use NSWorkspace notifications for detecting when apps where launching. To detect non-gnustep X11 apps, I could use your methods too. > >--- dock's responsibilities --- > >4. the dock is an IWMComponent & is actively listening for a variety of >notifications, including the one just created by the new client > When you say IWMomponent you mean an object within the process of interfacewm? I'm making the dock as a completely separate process. I'm thinking more along the lines of an NSDistributedNotificationCenter, is that your plan as well? Chad >5. the dock recieves the notification & it's associated userInfo dictionary, >which identifies the client & gives us a reference to the image to use for >the dock's icon representing this client >6. this is all that is now needed in order to interact with/control the >client; you can now post a variety of notifications using this information >directly from your component, with no need to hook into other IWM libs. for >example: > > - post IWMClientCloseNotification, along with the client's id in the >userInfo dictionary. > * IWM will close the client, if possible > - post IWMClientMoveNotification, along with the client's id, X and Y >coordinates in the userInfo dictionary. > * IWM will move the client to the specified coordinates, if possible > >you get the idea... > >- ian > > >-----Original Message----- > > >> I'm actually in the proccess of setting up the Notifications for IWM for >>exactly this purpose, >> >> >> > >Awesome! > > > >>with all pertinent data being stored in the userInfo >>dictionary. >> >> >> >I'm not following here, what pertinent info? Is this information >related to basic windowing interactions? > > >------------------------------------------------------- >This SF.net email is sponsored by: Etnus, makers of TotalView, The best >thread debugger on the planet. Designed with thread debugging features >you've never dreamed of, try TotalView 6 free at www.etnus.com. >_______________________________________________ >Simplygnustep-discuss mailing list >Sim...@li... >https://lists.sourceforge.net/lists/listinfo/simplygnustep-discuss > > |