Re: Is there any document to explain the process about the

2009-07-07 Thread Bright
http://developer.apple.com/documentation/Cocoa/Conceptual/NSPersistentDocumentTutorial/00_Introduction/introduction.html http://developer.apple.com/documentation/Cocoa/Conceptual/CoreDataUtilityTutorial/Articles/00_introduction.html

Re: AsyncSocket. Troubles with MTMessageBroker didReceiveData

2009-07-07 Thread Carlo Gulliani
Nobody knows? ___ 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:

Re: AsyncSocket. Troubles with MTMessageBroker didReceiveData

2009-07-07 Thread I. Savant
On Jul 7, 2009, at 4:24 AM, Carlo Gulliani wrote: Nobody knows? If they did, they'd reply. Don't bump the list if you have nothing to add. -- I.S. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Sending launch and quit Apple Events: Crazy Connection Errors

2009-07-07 Thread Jerry Krinock
I need to be able to quit and re-launch other applications, and have been getting all kinds of weird behavior. Maybe if someone could explain this one little test case I've isolated, it would be a big help. The code below attempts to launch TextEdit, wait 5 seconds, quit TextEdit, wait 5

Bound array item is repeatedly copied and collected while scrolling table view

2009-07-07 Thread Rick Hoge
I have a nib file in which entries in an NSTableView are bound to an NSMutableArray via an NSArrayController. It is used in an application running under garbage collection. The array items are NSDictionaries, and one of these dictionaries contains a large dataset object that consumes a

MVC....brief question

2009-07-07 Thread Michael de Haan
Hi all, I have just completed my first little cocoa app. Please, one brief question. The app follows ( or tries to) the MVC model, using bindings. ( A view, a single NSObjectController, and a model) I also used the method + (NSSet *)keyPathsForValuesAffectingBmi /* bmi is model Ivar */

Re: MVC....brief question

2009-07-07 Thread Keary Suska
On Jul 7, 2009, at 6:31 AM, Michael de Haan wrote: + (NSSet *)keyPathsForValuesAffectingBmi /* bmi is model Ivar */ { return [ NSSet setWithObjects:@weight, @height, nil]; } My question. I included the above method in the model, as this is the only place available. I just wonder

Re: MVC....brief question

2009-07-07 Thread Michael de Haan
On Jul 7, 2009, at 7:16 AM, Keary Suska wrote: On Jul 7, 2009, at 6:31 AM, Michael de Haan wrote: + (NSSet *)keyPathsForValuesAffectingBmi /* bmi is model Ivar */ { return [ NSSet setWithObjects:@weight, @height, nil]; } My question. I included the above method in the model, as

Display the elements of array in a tablview ?

2009-07-07 Thread Bright
Hi Everyone, There is an array with several elements in my application. And I have shown the elements in a tableview using binding. But now I need to display the elements using code only. Could anyone help me? Which method should I use? Thank you for help!! Bright

Re: Display the elements of array in a tablview ?

2009-07-07 Thread I. Savant
On Jul 7, 2009, at 10:43 AM, Bright wrote: There is an array with several elements in my application. And I have shown the elements in a tableview using binding. But now I need to display the elements using code only. Could anyone help me? Which method should I use? You want to

Re: AsyncSocket. Troubles with MTMessageBroker didReceiveData

2009-07-07 Thread David Blanton
Not necessarily true ... if you are deemed persona non grata you will not get a reply. On Jul 7, 2009, at 5:00 AM, I. Savant wrote: On Jul 7, 2009, at 4:24 AM, Carlo Gulliani wrote: Nobody knows? If they did, they'd reply. Don't bump the list if you have nothing to add. -- I.S.

Re: AsyncSocket. Troubles with MTMessageBroker didReceiveData

2009-07-07 Thread I. Savant
On Jul 7, 2009, at 11:11 AM, David Blanton wrote: Not necessarily true ... if you are deemed persona non grata you will not get a reply. True. List etiquette is key. -- I.S. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Sending launch and quit Apple Events: Crazy Connection Errors

2009-07-07 Thread Michael Nickerson
On Jul 7, 2009, at 8:21 AM, Jerry Krinock wrote: I need to be able to quit and re-launch other applications, and have been getting all kinds of weird behavior. Maybe if someone could explain this one little test case I've isolated, it would be a big help. The code below attempts to

Re: CoreData deleteAll of kind

2009-07-07 Thread Sean McBride
On 7/7/09 1:19 AM, Mike Abdullah said: Thanks all for your feedback. Seems quite inefficient. Wonder if this is filed as a suggestion to Apple. Why should that matter? File a request anyway, it will make the existing request ore prominent. Not that I disagree with the file a request anyway

Re: AsyncSocket. Troubles with MTMessageBroker didReceiveData

2009-07-07 Thread BJ Homer
Neither AsyncSocket nor MTMessageBroker are part of Cocoa, and thus you're very unlikely to find help on a Cocoa developer's list. They're both third-party classes. My best recommendation is that you try Google. The first result for searching *AsyncSocket MTMessageBroker* is

RE: TableView displaying a zillion empty rows

2009-07-07 Thread Brian Hughes
Yet clearly later in the method returnValue is set to 22 via count method applied to my array. In my debugger and in my NSLogs returnValue is 22. But you are only logging the case where it does return 22, so what would you expect? Instead, try moving the NSLog to log the *actual*

Re: Sending launch and quit Apple Events: Crazy Connection Errors

2009-07-07 Thread Jerry Krinock
Wow, Michael! I pasted in your code, rebuilt, and it worked perfectly. Thanks! Since you made my day be being such a trooper, I decided to file a bug. Maybe we'll get this fixed someday. Jerry Problem ID: 7037206 Apple Event built with Bundle ID Tries Connect to previously-quit

Re: TableView displaying a zillion empty rows

2009-07-07 Thread Quincey Morris
On Jul 7, 2009, at 09:35, Brian Hughes wrote: As I debug I can clearly see that the program is not going through the other path. It is definitely traveling through the path that I am logging. Everything says that returnValue is 22 except the actual tableView. By the way when the program

Re: Bound array item is repeatedly copied and collected while scrolling table view

2009-07-07 Thread Quincey Morris
On Jul 7, 2009, at 05:24, Rick Hoge wrote: I have a nib file in which entries in an NSTableView are bound to an NSMutableArray via an NSArrayController. It is used in an application running under garbage collection. The array items are NSDictionaries, and one of these dictionaries

NSConnection recursion -- (was Re: Long term performance of NSConnection)

2009-07-07 Thread Kevin Brock
Kirk Kerekes wrote: Use Activity Monitor (or other tool of your choice) to check for a port leak. It wasn't that... Turns out that the protocol on the connection had a call which took an Objective C object as a parameter. The parameter wasn't declared as /byref/ or /bycopy/, so I believe it

Re: Bound array item is repeatedly copied and collected while scrolling table view

2009-07-07 Thread Rick Hoge
... The array items are NSDictionaries, and one of these dictionaries contains a large dataset object that consumes a lot of memory. I noticed that, while I scrolled in the tableview, many copies of these large objects were being created and then immediately collected. It's

Re: Bound array item is repeatedly copied and collected while scrolling table view

2009-07-07 Thread Jean-Daniel Dupas
Le 7 juil. 09 à 14:24, Rick Hoge a écrit : I have a nib file in which entries in an NSTableView are bound to an NSMutableArray via an NSArrayController. It is used in an application running under garbage collection. The array items are NSDictionaries, and one of these dictionaries

Re: Bound array item is repeatedly copied and collected while scrolling table view

2009-07-07 Thread Rick Hoge
... I noticed that, while I scrolled in the tableview, many copies of these large objects were being created and then immediately collected. ... NSCells used to display table content copies the object it display. Instead of binding the cell value to your object directly, bind it

Re: CoreData deleteAll of kind

2009-07-07 Thread Adam Swift
On Jul 7, 2009, at 9:17 AM, Sean McBride wrote: On 7/7/09 1:19 AM, Mike Abdullah said: Thanks all for your feedback. Seems quite inefficient. Wonder if this is filed as a suggestion to Apple. Why should that matter? File a request anyway, it will make the existing request ore prominent.

Re: TableView displaying a zillion empty rows

2009-07-07 Thread Steve Christensen
On Jul 6, 2009, at 8:20 PM, Brian Hughes wrote: I really appreciate your other points about my error code -- I never thought about what the tableView might do if -1 was returned and now that I think about it I don't really want to find out so I changed it to 0. Others have already given

Re: Display the elements of array in a tablview ?

2009-07-07 Thread Jesse Armand
I'm not even familiar with Bindings, is it convenient to use ? I did an intensive development with Cocoa starting with Cocoa Touch, so I'm used to using the equivalent UITableViewDataSource to populate table views. Jesse Armand (http://jessearmand.com)

Re: Display the elements of array in a tablview ?

2009-07-07 Thread I. Savant
On Jul 7, 2009, at 4:48 PM, Jesse Armand wrote: I'm not even familiar with Bindings, is it convenient to use ? Once you understand all of its prerequisites, it can be. The better question to ask is is it convenient to use in this particular scenario. The answer may be yes or no

Re: Display the elements of array in a tablview ?

2009-07-07 Thread Bright
Now , I see. Thank you for everyone's help. Binding is useful, but sometimes maybe it is not suited to your need. Bright On Jul 7, 2009, at 4:48 PM, Jesse Armand wrote: I'm not even familiar with Bindings, is it convenient to use ? Once you understand all of its prerequisites, it

Re: Display the elements of array in a tablview ?

2009-07-07 Thread Daniel DeCovnick
Point of order, you CAN use bindings in code, it's just far more convenient to do so in IB. On Jul 7, 2009, at 1:59 PM, I. Savant wrote: On Jul 7, 2009, at 4:48 PM, Jesse Armand wrote: I'm not even familiar with Bindings, is it convenient to use ? Once you understand all of its

unarchiving a font collection

2009-07-07 Thread edward m taffel
hello list, as NSFontManager -fontDescriptorsInCollection is apparently unreliable, i would like to unarchive collections directly (it seems apple does not provide support for this): anyone had success with unarchiving a font collection? thanks to all in advance, edward m taffel

Cocoaheads Lake Forest (92630) meeting 7/8/2009 at 7 pm on dSym, the new symbol style for XCode

2009-07-07 Thread Scott Ellsworth
CocoaHeads Lake Forest will be meeting on the second Wednesday of the month. We will be meeting at the Orange County Public Library (El Toro) community room, 24672 Raymond Way, Lake Forest, CA 92630 Please join us from 7pm to 9pm on Wednesday, 7/8. Peter Hosey will be talking on a variety of

RE: TableView displaying a zillion empty rows

2009-07-07 Thread Brian Hughes
So I changed my code to reflect Quincy Morris's recommendations. -(int) numberOfRowsInTableView: (NSTableView *)aTableView {if (aTableView == gameScoresTableView) //This works as expected { LNPlayer *currentPlayer = [playersArray objectAtIndex: currentIndex_]; NSMutableArray