• 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: NSTableView _dataSourceValueForColumn:row: failure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView _dataSourceValueForColumn:row: failure


  • Subject: Re: NSTableView _dataSourceValueForColumn:row: failure
  • From: Alexander Bokovikov <email@hidden>
  • Date: Fri, 12 Mar 2010 08:55:53 +0500


On 11.03.2010, at 23:25, Corbin Dunn wrote:

http://www.corbinstreehouse.com/blog/2008/08/your-most-important-breakpoint-in-cocoa/

I've done what was told there. No difference. I just get EXC_BAD_ACCESS in XCode status line and debugger's call stack list shows:


objc_msgSend
- [NSTableView _dataSourceValueForColumn:row: ]
........

and a long chain is below, but there are no "my" project lines there. All lines are from Cocoa itself. It looks like the window requires for update after dataSource is already released.

This is how I call the modal window:

- (void) doModalWnd{
	MyWnd *wnd = [[MyWnd alloc] init];
	[[NSApplication sharedApplication] runModalForWindow:[wnd window]];
	[wnd release];
}

- (IBAction) myBtnClick:(NSButton *)sender {
	[self performSelector:@selector(doModalWnd)
			   withObject:nil
			   afterDelay:0];
}

There is such code within MyWnd.m:

- (void)windowWillClose:(NSNotification *)notification {
	[[NSApplication sharedApplication] stopModalWithCode:NSCancelButton];
}

Is there anything criminal here?

Thanks.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTableView _dataSourceValueForColumn:row: failure
      • From: Corbin Dunn <email@hidden>
    • Re: NSTableView _dataSourceValueForColumn:row: failure
      • From: Eli Bach <email@hidden>
References: 
 >NSTableView _dataSourceValueForColumn:row: failure (From: Alexander Bokovikov <email@hidden>)
 >Re: NSTableView _dataSourceValueForColumn:row: failure (From: Corbin Dunn <email@hidden>)
 >Re: NSTableView _dataSourceValueForColumn:row: failure (From: "Alexander Bokovikov" <email@hidden>)
 >Re: NSTableView _dataSourceValueForColumn:row: failure (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: Switching methods in private classes in Apple frameworks
  • Next by Date: Making a beta version expire
  • Previous by thread: Re: NSTableView _dataSourceValueForColumn:row: failure
  • Next by thread: Re: NSTableView _dataSourceValueForColumn:row: failure
  • Index(es):
    • Date
    • Thread