Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom NSView for NSWindow. #31

Open
paulodelgado opened this issue Sep 25, 2023 · 1 comment
Open

Custom NSView for NSWindow. #31

paulodelgado opened this issue Sep 25, 2023 · 1 comment

Comments

@paulodelgado
Copy link

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? ([email protected]).

@gcasa
Copy link
Member

gcasa commented Dec 12, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants