bugGNUstep - Bugs: bug #24979, NIB LOADING: NSScrollView...

Group
 
 

bug #24979: NIB LOADING: NSScrollView document view is an NSCustomView when scrollview contains a custom subclass

Submitter:  Gregory John Casamento <gcasa>
Submitted:  Tue 02 Dec 2008 06:24:39 AM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  gcasa
Open/Closed:  In Test
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 02 Dec 2008 03:39:58 PM UTC, comment #2: 

I agree.   I would still like to understand what they're doing and why.   Naturally the implementation might change over time.  There's obviously more work to do on this front. 

I intend on getting through a lot of it in the coming weeks.  The solution I've put into place solves the immediate issue.

I will do more tests to see what the behavior in Cocoa is before closing this bug.

Gregory John Casamento <gcasa>
Group administrator
Tue 02 Dec 2008 08:05:20 AM UTC, comment #1: 

Are you sure that what you report as the expected behaviour is what is happening in Cocoa?
I am very sure that nibinstantiate gets called a lot later there. I can see how the behaviour you describe is a lot easier to implement correctly and perhaps we should just go for it now. Still, in the long run we should try to stay compatible with what Apple does and for that reason, we should document the real implementation there.

Fred Kiefer <FredKiefer>
Group Member
Tue 02 Dec 2008 06:24:39 AM UTC, original submission:  

Steps to recreate:

1) In InterfaceBuilder create a new Application
2) Add a CustomView
3) Set the customview to a custom subclass of NSView (it doesn't matter which)
4) Go to the menu and wrap the view in a scrollview.
5) Create an application under GNUstep which uses the nib.
6) Set a breakpoint in NSScrollView initWithCoder:.
7) Inspect the subviews.
8) get the NSClipView
9) do "po" on the documentView of the clip view.

Expected: It should be an instance of your subclass.
Result: It is an NSCustomView.

This is incorrect.  It should always be your custom subclass.

GC

Gregory John Casamento <gcasa>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by FredKiefer (Posted a comment)
  • -email is unavailable- added by gcasa (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-12-02 gcasa StatusIn Progress Fixed
        Open/ClosedOpen In Test

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code