On Sat, 23 Jan 1999, Alexander Larsson stated:
> 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.
By using a registry based on the object type, we can keep it totally
seperate. I find that nicer. But again, if all objects have a menu, it
might go into the object. In either case, there should just be a standard
way to add the menu for an object.
Arg! My control key is broken -- I have to keep control down to type
normally. Suns suck.
>>> 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.
Yeah, I guess the user would like to know that he actually hit something.
> Also it might be good to have some items from the normal menu also in
> the object menu. Mainly place over/under.
In both menus? Well, why not... possibly there could be a standard menu
that objects can then add their own stuff to?
>> 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'.
Ah. Well, that's nice.
-Lars
--
Lars R. Clausen ([EMAIL PROTECTED])
A *real* smart bomb would call in sick, perhaps move to another country,
changing its name in the process, open a beach bar maybe and live out its
days in safe anonymity. -- Barry O'Neill in rhod