discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Gorm too complex ? [long]


From: Bissell, Tim
Subject: RE: Gorm too complex ? [long]
Date: Mon, 11 Feb 2002 15:45:19 -0000

> From: "Peron, Stéphane" [mailto:stephane.peron@dcmc.creditlyonnais.fr]
> 
> Ok ...thanks Tim for your explanations ....
> 
> Imagine that I have created a graphic object that is 
> naturally not providen
> by Gorm .....
> Can I use Gorm in this case ?
> 

In a word ... maybe!  This was a bit of a weak point in
InterfaceBuilder; GORMs NeXT predecessor.  GNUstep has two types of
graphic objects, NSCells and NSViews (split is for performance reasons).
If you are not interested in what your View looks like, just where it is
on the screen, you can use a 'CustomView' as a placeholder for it, and
connect it to other objects in your interface. This means that your custom
object gets created with a
'[[{CustomClass} alloc] initWithFrame:{frameRect}]'
method.

If you want to have a
functional, visible GUI object in your interface,  you have to write a
helper class for your View, plus an inspector class + interface to
allow you to alter the state of the GUI object, just like you do with
standard buttons etc.  I don't know how this is supported in GORM, but
at least the source code is available as an example!

regards,

TIm


----------------------------------------------------------------------
If you have received this e-mail in error or wish to read our e-mail 
disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender.
----------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]