FROM : Jonathan Hendry
DATE : Thu Nov 21 22:31:06 2002
On Thursday, Nov 21, 2002, at 16:00 America/New_York, Rixster @ Rixstep
wrote:
>
> PS. Incidentally, you ask to provide code. I did. The code used is
> RaiseMan. It's online at Aaron's site. The only addition was already
> posted.
RaiseMan is a toy app, written to be used with only a few rows in order
to demonstrate some basic Cocoa programming. The
algorithms used weren't designed for use with thousands of rows.
If you know what rows the user wants to remove, then remove those
specific indexes. Or use removeObjectsInRange:, which ought to be
faster. Or removeAllObjects if that's the intent. Don't use
removeObjectsInArray, for the reason Scott mentioned.
>
> --- Scott Anguish <<email_removed>> wrote:
>>> [employees removeObjectsInArray:peopleToRemove];
>>>
>>
>> Try instead -removeAllObjects...
>>
>> Perhaps it would be best, instead of assuring us that the code is
>> straight out of Aaron's book, to provide the code you used.
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
> _______________________________________________
> cocoa-dev mailing list | <email_removed>
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Thu Nov 21 22:31:06 2002
On Thursday, Nov 21, 2002, at 16:00 America/New_York, Rixster @ Rixstep
wrote:
>
> PS. Incidentally, you ask to provide code. I did. The code used is
> RaiseMan. It's online at Aaron's site. The only addition was already
> posted.
RaiseMan is a toy app, written to be used with only a few rows in order
to demonstrate some basic Cocoa programming. The
algorithms used weren't designed for use with thousands of rows.
If you know what rows the user wants to remove, then remove those
specific indexes. Or use removeObjectsInRange:, which ought to be
faster. Or removeAllObjects if that's the intent. Don't use
removeObjectsInArray, for the reason Scott mentioned.
>
> --- Scott Anguish <<email_removed>> wrote:
>>> [employees removeObjectsInArray:peopleToRemove];
>>>
>>
>> Try instead -removeAllObjects...
>>
>> Perhaps it would be best, instead of assuring us that the code is
>> straight out of Aaron's book, to provide the code you used.
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
> _______________________________________________
> cocoa-dev mailing list | <email_removed>
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| rixstep000 | Nov 21, 21:28 | |
| Scott Anguish | Nov 21, 21:42 | |
| Scott Anguish | Nov 21, 21:45 | |
| Rixster @ Rixstep | Nov 21, 22:00 | |
| Scott Anguish | Nov 21, 22:10 | |
| Rixster @ Rixstep | Nov 21, 22:22 | |
| Marco Scheurer | Nov 21, 22:27 | |
| Jonathan Hendry | Nov 21, 22:31 | |
| Scott Anguish | Nov 22, 02:55 | |
| Nat! | Nov 23, 00:19 |






Cocoa mail archive

