bugGNUstep - Bugs: bug #34927, NSOpenGLView subclasses only work...


bug #34927: NSOpenGLView subclasses only work when added as "custom view" to the NIB file

Submitted by:  julian <julian_>
Submitted on:  Mon 28 Nov 2011 04:10:31 PM UTC  
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  In Progress
Privacy:  Public Assigned to:  Gregory John Casamento <gcasa>
Open/Closed:  Open

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 12 May 2015 09:46:02 AM UTC, comment #1: 

This is likely because the initWithCoder: and encodeWithCoder: methods are not implemented on NSOpenGLView with keyed coding.  I am investigating this issue.

Gregory John Casamento <gcasa>
Project AdministratorIn charge of this item.
Mon 28 Nov 2011 04:10:31 PM UTC, original submission:  


this bug seems to be similar to bug #34764 where custom classes don't properly get decoded from XIB files. but this is with NIB files.

attached is a simple NSOpenGLView example.

CocoaGL-1 works fine. the NSOpenGLView is added as a custom view to the NIB file and the pixel format is set up in the code.

CocoaGL-2 doesn't work on gnustep. the only difference is that the NSOpenGLView subclass has been added to the nibfile not by adding a "custom view" and changing its class but by adding a NSOpenGLView and changing its class to the subclass. the pixel format is setup right in Interface Builder instead of in the code.

both examples work fine under Mac OS X, but only the first one works on gnustep.

julian <julian_>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #24488:  Archiv.tar.gz added by julian_ (919KiB - application/x-gzip)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by gcasa (Posted a comment)
  • -email is unavailable- added by julian_ (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-05-12 gcasa StatusNone => In Progress
        Assigned toNone => gcasa
    2011-11-28 julian_ Attached File- => Added Archiv.tar.gz, #24488

    Back to the top

    Powered by Savane 3.5