bugGNUstep - Bugs: bug #18081, Gorm aborts saving a windowless...

Group
 
 

bug #18081: Gorm aborts saving a windowless view as a nib

Submitter:  Mark Tracy <tracy454>
Submitted:  Sat 21 Oct 2006 10:57:04 PM UTC
   
 
Category:  Gorm Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  gcasa
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 25 Feb 2008 10:04:41 PM UTC, comment #4: 

The original issue for this bug is solved.   The remaining issues will be corrected as part of the fix for bug #22282.

Gregory John Casamento <gcasa>
Group administrator
Mon 23 Oct 2006 12:08:05 AM UTC, comment #3: 

"The other strange behaviors happens when I re-open the saved exportAs.gorm. It does not appear until I double-click the NSBox in the Object Window"

This is expected behavior.   The only objects which should be visible when the .gorm file is opened are windows.

"then I can see the contents, but I can't select any of the objects.

I can trick Gorm by dropping another object into the box; then I can select and edit anything."

I was able to reproduce this, so this part is a bug.

"Then when I save the altered file, the displayed window vanishes. Double-clicking the NSBox in the Object window gives me an empty window with no contents. The only thing to do is close the file and re-open it."

This is also an issue.

Thanks for the report.  I will try to correct this.

GJC

Gregory John Casamento <gcasa>
Group administrator
Sun 22 Oct 2006 11:41:47 PM UTC, comment #2: 

The other strange behaviors happens when I re-open the saved exportAs.gorm. It does not appear until I double-click the NSBox in the Object Window; then I can see the contents, but I can't select any of the objects.

I can trick Gorm by dropping another object into the box; then I can select and edit anything.

Then when I save the altered file, the displayed window vanishes. Double-clicking the NSBox in the Object window gives me an empty window with no contents. The only thing to do is close the file and re-open it.

I can reproduce the effects by building a new windowless NSBox. Rebuilding Gorm itself did not help.

Mark Tracy <tracy454>
Sun 22 Oct 2006 03:28:56 AM UTC, comment #1: 

This problem isn't "deeply rooted."  It is, in fact, a known issue to me.. and one I've been meaning to address.

The "issue" is that Gorm handles Windowless Views differently from IB.   Currently, IB does not allow you to create an NSBox, like in your example.   To do this in IB, you would need to add a custom view to the objects view and switch it to an "NSBox" class in the "custom class" inspector.

Gorm works slightly differently.  I've been meaning to add the capability to Gorm to do it the way IB does (as well as preserving the way it does it today).

As for "strange behavior" when working with this file in native format, could you be more specific in your description, as I'm not quite certain what "strange behavior" you're referring to.

GJC

Gregory John Casamento <gcasa>
Group administrator
Sat 21 Oct 2006 10:57:04 PM UTC, original submission:  

When saving a windowless view as a nib, Gorm aborts with an NSInvalidArgument: Tried to add nil to an array.
The problem seems more deeply rooted than it appears, since Gorm acts strangely with this file in gorm native format too.

When used in a program, the sample file functions correctly as an auxiliary view for NSSavePanel.

System details: Suse Linux 10.1, gcc-4.1.0, GNUstep-base 1.13.0, GNUstep-gui-0.11.0, Gorm-1.1.0.

Mark Tracy <tracy454>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #11022:  exportAs.gorm.tar.gz added by tracy454 (1KiB - application/x-gzip - windowless view that crashes Gorm 1.1.0)

 

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)
  •  

    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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-02-25 gcasa StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2006-10-22 gcasa StatusNone In Progress
        Assigned toNone gcasa
    2006-10-21 tracy454 Attached File- Added exportAs.gorm.tar.gz, #11022

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code