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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitted by:  Gregory John Casamento <gcasa>
Submitted on:  Tue 02 Dec 2008 06:24:39 AM UTC  
 
Category: Gui/AppKitSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Gregory John Casamento <gcasa>
Open/Closed: In Test

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>
Project AdministratorIn charge of this item.
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>
Project 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>
Project AdministratorIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 02 Dec 2008 06:37:56 AM UTCgcasaStatusIn Progress=>Fixed
      Open/ClosedOpen=>In Test

    Back to the top


    Powered by Savane 3.1-cleanup1