Re: closed - NSTableView is not updated on [reloadData]

2009-07-23 Thread Alexander Bokovikov


On 23.07.2009, at 21:25, I. Savant wrote:


 Is your myTable outlet connected to the table view?


I'm fool... :( sorry... I was pretty sure it is, but really it isn't.   
Also I was sure that BAD_ACCESS exception should occur if not  
initialized outlet is used to send a message to.


Fixed it.

Thanks for so quick reply!

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: closed - NSTableView is not updated on [reloadData]

2009-07-23 Thread Graham Cox


On 24/07/2009, at 1:52 AM, Alexander Bokovikov wrote:

Also I was sure that BAD_ACCESS exception should occur if not  
initialized outlet is used to send a message to.



Definitely not.

Uninitialized outlets are set to nil, and messages to nil are legal -  
they simply swallow the messages. On t e whole this is much safer than  
crashing but can lead to the odd bug where nothing happens and you  
don't immediately know why.


--Graham


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: closed - NSTableView is not updated on [reloadData]

2009-07-23 Thread Greg Guerin

Alexander Bokovikov wrote:

Also I was sure that BAD_ACCESS exception should occur if not  
initialized outlet is used to send a message to.


An uninitialized outlet is always nil.  It is always legal to send  
messages to nil, although some returned values may be undefined.  Re- 
read the basic docs on messaging, if necessary.


It may be illegal to perform other operations with nil, so don't make  
the opposite mistake of thinking that just because sending a message  
to nil is legal, so is everything else.


  -- GG

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com