On 23 Jan, Lars Clausen wrote:
> On Sat, 23 Jan 1999, Alexander Larsson spake thusly:
> 
>> By the way, when you add object methods in ObjectOps, make sure you
>> place them last, and decrease the number of unused in the line:
>>   void      (*(unused[10]))(Object *obj,...); 
> 
> I was actually hoping to avoid adding anything to the Object, as this
> seems like a rather App-specific thing.  Not all objects would use it,
> either. 

 Yeah, but it seems hard not to add anything. Objects not using it
 could just return NULL, or have a NULL function pointer.

>> Then make sure you handle the object method pointer being NULL and do
>> some default stuff in the code. That way we remain binary compatible.
> 
> The default stuff will be to not pop up any menu.
 I don't know if this is good from a user-friendly point of view. I
 think an empty menu is better, because then you see that something
 happens when you press the middle button on an object, even if it
 doesn't do anything for all objects.
 Also it might be good to have some items from the normal menu also in
 the object menu. Mainly place over/under.
  
> Another thing:  Why have you made the file format binary?  Conversion,
> mailing, grepping etc is a lot easier with text files.

 It's not binary really it's just gzip:ed xml files. Try
 'zcat samples/UML-demo.dia'.

/ Alex


Reply via email to