• 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: [NSInternalInconsistencyException] Setting a drawer's new content view under Tiger (SOLVED)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSInternalInconsistencyException] Setting a drawer's new content view under Tiger (SOLVED)


  • Subject: Re: [NSInternalInconsistencyException] Setting a drawer's new content view under Tiger (SOLVED)
  • From: Frédéric BLANC <email@hidden>
  • Date: Sun, 22 May 2005 01:57:50 +0200

Offlist, Marc P. advised me to modify my code so that it first resigns
my NSTextView from being the 1st responder (by calling
makeFirstResponder onto my window instance), as:

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

[Java]
    public void submit(Object sender) { /* IBAction */
        window.makeFirstResponder(null);
        drawer.setContentView(readView);
    }

Even if I'm not sure to get the whole idea yet (I'm gonna read some
documentation to master this from now…), it really seems to do the
trick! So, thanks a lot, Marc. And sorry for the annoyance… (I'm glad
not to have bug reported this to Apple ;) !) I think it's another
example of Tiger's enforcing *proper* behaviours (since it worked
"like a charm" on Panther systems w/o such a verification…)

All in all, thx again!


--
— 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

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>)
 >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: What does "NS" means ?
  • Previous by thread: Re: [NSInternalConsistencyException] Setting a drawer's new content view under Tiger
  • Next by thread: drawPageBorderWithSize: and NSPrintScalingFactor breakage in Tiger
  • Index(es):
    • Date
    • Thread