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

 
 

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

Submitter:  julian <julian_>
Submitted:  Mon 28 Nov 2011 04:10:31 PM UTC
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  Works For Me
Privacy:  Public Assigned to:  gcasa
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Thu 09 Dec 2021 10:01:35 AM UTC, comment #2: 

Appears to be working properly now.


Gregory John Casamento <gcasa>
Project Administrator
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 Administrator
Mon 28 Nov 2011 04:10:31 PM UTC, original submission:  

hello

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:
   
   
Comment:
   

Attached Files
file #52459:  OpenGLonGS.jpg added by gcasa (470KiB - image/jpeg)
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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

     

     

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-12-09 gcasa StatusIn Progress Works For Me
        Open/ClosedOpen Closed
    2021-12-09 gcasa Attached File- Added OpenGLonGS.jpg, #52459
    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.9