gnustep / apps-gorm

Gorm is a clone of the Cocoa (OpenStep/NeXTSTEP) `Interface Builder' application for GNUstep
http://www.gnustep.org/
GNU General Public License v3.0
67 stars 18 forks source link

Custom NSView for NSWindow. #31

Open paulodelgado opened 11 months ago

paulodelgado commented 11 months ago

Hello! I'm learning ObjC/GNUstep and to do so I've been watching some Xcode/Cocoa videos on youtube.

For my app, I'd like to use an NSGradient for the background depending on the content of the window. It looks like in Apple's Interface Builder there is a way to specify a custom class for the NSWindow's NSView object where one can override the drawRect() method. Is there a way to do the same in Gorm?

Is this the right venue for this kind of questions? Or should I instead send an email to the discuss mailing list? (discuss-gnustep@gnu.org).

gcasa commented 9 months ago

Hey Paulo, yes this is the right venue for this. I haven't used the functionality you're talking about but it sounds interesting. Currently, you can create a custom view in Gorm and override the drawRect method in code, no problem. But it sounds like you're speaking about replacing the contentView of a window, is this the case? Could you give me an xcode project which demonstrates what you're talking about as an example? Sorry for the late response, things have been pretty busy on the work side of things. Thanks for your patience. GC