• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [NSInternalConsistencyException] Setting a drawer's new content view under Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSInternalConsistencyException] Setting a drawer's new content view under Tiger


  • Subject: Re: [NSInternalConsistencyException] Setting a drawer's new content view under Tiger
  • From: Frédéric BLANC <email@hidden>
  • Date: Sat, 21 May 2005 20:27:04 +0200

Summary: Setting a different view for an NSDrawer which contains an
NSTextView seems to lead to an error in Tiger.

===

   Hi,


I still haven't found what was wrong with my (stupid simple) use of an
NSDrawer… It worked perfectly on Panther, and it's kind of broken in
Tiger.

I've recently posted a tiny project (< 30 KB) in Cocoa-Java on my
website (URL: http://blanc.free.fr/pub/temp/NSInternalConsistencyException.zip),
but failed to get an useful answer :( ! So, today, I've built an
ObjC-based project for you; I hope to get more attention now ;) !
(Fingers crossed…) Thx in advance. Here's the URL:
http://blanc.free.fr/pub/temp/NSInternalConsistencyExceptionObjC.zip
(< 30 KB)

Scenario: Click on the "Edit" button; fill some text in the text area;
validate it with the "Submit" button -> You should get an error (see
below) in Xcode's "Run Log" window *most of the time* (otherwise,
repeat those steps until it comes!)

===

And for those who don't want to get this archive, here's the (stupid
simple) code:
[ObjC]
- (IBAction)edit:(id)sender
{
    [drawer setContentView:editView];
}

- (IBAction)submit:(id)sender
{
    [drawer setContentView:readView];
}

=> Error Log:
2005-05-21 20:23:06.492 NSInternalInconsistencyExceptionObjC[375] ***
Assertion failure in -[NSView
_gatherFocusStateInto:upTo:withContext:], AppKit.subproj/NSView.m:3125
2005-05-21 20:23:06.495 NSInternalInconsistencyExceptionObjC[375]
non-positive window number

===

or:
[Java]
    public void edit(Object sender) { /* IBAction */
        drawer.setContentView(editView);
    }

    public void submit(Object sender) { /* IBAction */
        drawer.setContentView(readView);
    }

=> Error Log:
<<
2005-05-21 20:25:53.199 NSInternalConsistencyException[454] ***
Assertion failure in -[NSView
_gatherFocusStateInto:upTo:withContext:], AppKit.subproj/NSView.m:3125
2005-05-21 20:25:53.281 NSInternalConsistencyException[454]
NSInternalInconsistencyException: non-positive window number
Stack Trace:
NSInternalInconsistencyException: non-positive window number
	at com.apple.cocoa.application.NSDrawer.setContentView(Native Method)
	at Controller.submit(Controller.java:20)
>>

===

If I still don't get any useful answer on this topic, I'll bug report
it to Apple. I'll tell you when it's done.

*THANKS* for your help,


--
— Frederic BLANC (email@hidden)
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: [NSInternalInconsistencyException] Setting a drawer's new content view under Tiger (SOLVED)
      • From: Frédéric BLANC <email@hidden>
References: 
 >[NSInternalConsistencyException] Setting a drawer's new content view under Tiger (From: Frédéric BLANC <email@hidden>)
 >Re: [NSInternalConsistencyException] Setting a drawer's new content view under Tiger (From: John Stiles <email@hidden>)
 >Re: [NSInternalConsistencyException] Setting a drawer's new content view under Tiger (From: Frédéric BLANC <email@hidden>)

  • Prev by Date: Re: NSTextField and clickable link
  • Next by Date: Re: CoreData to-many relationships
  • Previous by thread: Re: [NSInternalConsistencyException] Setting a drawer's new content view under Tiger
  • Next by thread: Re: [NSInternalInconsistencyException] Setting a drawer's new content view under Tiger (SOLVED)
  • Index(es):
    • Date
    • Thread