Re: int to bytes(value in NSString)

2009-08-18 Thread Graham Cox
On 18/08/2009, at 4:21 PM, bosco fdo wrote: Hi graham Thanks for the reply. I have tried %i.1 but i am getting 0.10.10.10.1 , but i need it in binary byte value bos Sorry, I meant %.1i However it's not really clear what you're trying to do - do you want to display the binary of som

Last look of my IPhone project

2009-08-18 Thread Agha Khan
Hi: I need guidance. I have finished my first project and running Instruments. I realized that I have no Leak. :-) Looking ObjectAlloc the bar is RED for CategoryNet Bytes#Net Overall Bytes #Overall#A

Re: Last look of my IPhone project

2009-08-18 Thread Roland King
as far as I've ever been able to understand, GeneralBlock-0 is for allocations of size .. 0. The net bytes used is zero and so I don't think it matters. Agha Khan wrote: Hi: I need guidance. I have finished my first project and running Instruments. I realized that I have no Leak. :-) Lookin

Mac Pro and iMac

2009-08-18 Thread XiaoGang Li
Hi, List, I know that this is not the suitable list to ask this kind of question, but I really do not know where to post it. Thanks for your allowance. I have a Mac Pro, the Boot Rom version is MP31.006C.B05, the system requirement of this firmware version is Mac OS X 10.5.2. I h

Re: Mac Pro and iMac

2009-08-18 Thread Francis Devereux
On 18 Aug 2009, at 09:54, XiaoGang Li wrote: Hi, List, I know that this is not the suitable list to ask this kind of question, but I really do not know where to post it. Thanks for your allowance. Try the macosx-talk list - http://www.omnigroup.com/mailman/listinfo/macosx-talk Francis _

Mouting hybrid discs...

2009-08-18 Thread Farooq zaman
Hi All, I have a hybrid disc with HFS+ and UDF volumes on it. I want to mount both volumes at the same time. One by default upon disc insertions and the second using some application. I can use mount command but it requires admin passwords for two reasons: 1. Not all users have pr

Re: Displaying an animated graph (= nodes and edges)

2009-08-18 Thread Kaspar Fischer
You are right, no doubt. Apologies for being impatient. Kaspar On 17.08.2009, at 22:28, I. Savant wrote: On Aug 17, 2009, at 4:18 PM, Kaspar Fischer wrote: Any ideas? If there were, someone would have replied. Bumping your own message without adding new information to help clarify your

Re: Mac Pro and iMac

2009-08-18 Thread I. Savant
On Aug 18, 2009, at 4:54 AM, XiaoGang Li wrote: I know that this is not the suitable list to ask this kind of question ... Then don't. Keep posts to the cocoa-dev list relevant to Cocoa or find another list. -- I.S. ___ Cocoa-dev mailing list

Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view?

2009-08-18 Thread I. Savant
On Aug 17, 2009, at 10:32 PM, Graham Cox wrote: It seems strange because on the face of it -menuForEvent: is meant, as far as I can see, merely to return a property - the view's contextual menu (the event providing the context). What is done with the menu as far as displaying it, is down to

Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view?

2009-08-18 Thread I. Savant
On Aug 18, 2009, at 6:54 AM, I. Savant wrote: It's akin to asking the AddressBook person view for its "-lastName" field contents and having it highlight the field before giving up its secrets. MVC? Feh! We don't need no MVC! ;-) Sorry, let me explain my thoughts a bit more here. I'm not

disabling tooltips table view

2009-08-18 Thread Rick C.
hello, i'm probably overlooking something simple but if someone could point me in the right direction on how to disable tooltips in my table view i would appreciate it. i have tried all the ways i could find through documentation/google and they still seem to appear although randomly. thank y

Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view?

2009-08-18 Thread Graham Cox
On 18/08/2009, at 9:07 PM, I. Savant wrote: It's not quite the same because a menu is another view and the table view is merely holding a reference to it. This is more an encapsulation problem. Sorry for being so quick to "play the MVC card". ;-) In a way though, I think you're right.

Re: disabling tooltips table view

2009-08-18 Thread Graham Cox
On 18/08/2009, at 9:24 PM, Rick C. wrote: hello, i'm probably overlooking something simple but if someone could point me in the right direction on how to disable tooltips in my table view i would appreciate it. i have tried all the ways i could find through documentation/google and they

Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view?

2009-08-18 Thread Graham Cox
On 18/08/2009, at 9:50 PM, Graham Cox wrote: Here's a fun little method I wrote to explore this - it just fakes an event that gradually tracks from the top of the table to the bottom. As you can see, you wouldn't really expect it to draw anything, but it does highlight each row in turn. Th

Re: disabling tooltips table view

2009-08-18 Thread Rick C.
thank you graham, upon closer look i was in error to use the word tooltip. i have seen this method before and tried it again and it does work to change the tooltip or disable it. what i'm seeing must be some form of highlighting. although i have disabled the standard highlighting where when

RE: Overriding NSCollectionView's selection: a good idea?

2009-08-18 Thread Austin Grigg
Andrew, I would recommend using the selection that is built into the NSCollectionView. Just make sure that "Allows Multiple Selected" is checked in IB for your collection view and then the user can Shift- click or Command-click or highlight with their mouse to get multiple selection. If

Re: int to bytes(value in NSString)

2009-08-18 Thread Jeremy Pereira
On 18 Aug 2009, at 03:06, Graham Cox wrote: On 17/08/2009, at 5:07 PM, bosco fdo wrote: I need NSString in binary format how do i print NSString in binary format instead of "0001" obj-c code is uint8 barr[4]; barr[0] =(uint8)num; barr[1] =(uint8)num>>8; barr[2] =(uint8)num>>16; barr[3] =(u

Re: disabling tooltips table view

2009-08-18 Thread Corbin Dunn
On Aug 18, 2009, at 5:39 AM, Rick C. wrote: thank you graham, upon closer look i was in error to use the word tooltip. i have seen this method before and tried it again and it does work to change the tooltip or disable it. what i'm seeing must be some form of highlighting. although i

Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view?

2009-08-18 Thread Corbin Dunn
Hi Corbin, thanks for the clarification. I didn't re-read the release notes when looking for information on this I must admit, though the exact wording doesn't immediately clarify the precise issue. But I do understand the thinking a little better now. This though: If no menu was retu

Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view?

2009-08-18 Thread Corbin Dunn
On Aug 17, 2009, at 7:22 PM, Adam R. Maxwell wrote: On Aug 17, 2009, at 11:54 AM, Quincey Morris wrote: On Aug 17, 2009, at 11:14, I. Savant wrote: I'm not sure what you mean here, but I'm fairly sure I disagree. :-D This is one step in the right direction. One. At least, insofar as "we

Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view?

2009-08-18 Thread Corbin Dunn
On Aug 18, 2009, at 5:15 AM, Graham Cox wrote: On 18/08/2009, at 9:50 PM, Graham Cox wrote: Here's a fun little method I wrote to explore this - it just fakes an event that gradually tracks from the top of the table to the bottom. As you can see, you wouldn't really expect it to draw an

[OT] Re: Mouting hybrid discs...

2009-08-18 Thread Alastair Houghton
On 18 Aug 2009, at 10:19, Farooq zaman wrote: I have a hybrid disc with HFS+ and UDF volumes on it. I want to mount both volumes at the same time. One by default upon disc insertions and the second using some application. I can use mount command but it requires admin passwords for two reaso

Newbie query re multithreading

2009-08-18 Thread McLaughlin, Michael P.
I am converting a Carbon app to Cocoa (where I'm a newbie). The Carbon app was multithreaded and heavily dependent on cblas and clapack. It worked well and was fully twice as fast with 2 CPUs as with 1. However, the code was becoming increasingly obsolete. I now have a Cocoa [ObjectiveC++] vers

Re: disabling tooltips table view

2009-08-18 Thread Rick C.
great thank you very much corbin! From: Corbin Dunn To: Rick C. Cc: Graham Cox ; cocoa dev Sent: Tuesday, August 18, 2009 10:05:19 PM Subject: Re: disabling tooltips table view On Aug 18, 2009, at 5:39 AM, Rick C. wrote: > thank you graham, > > upon clos

Re: Mac access to iPhone Document Directory

2009-08-18 Thread Sean Kline
One way that I thought about doing this was to create a client/server application that would communicate between the iPhone and Mac using sockets, for example. Would that not be possible? On Mon, Aug 17, 2009 at 9:29 PM, Clark Cox wrote: > On Mon, Aug 17, 2009 at 2:12 PM, The Grand Poohbah > wr

Re: Newbie query re multithreading

2009-08-18 Thread Jonathan Dann
FWIW you can't always be sure that NSOperationQueue will be using a thread per operation. The number of active operations (I explicitly don't say "threads" here) depends on system contention. Are your operations dependent on each other or using shared resources? Are you setting -[NSOperat

Re: Newbie query re multithreading

2009-08-18 Thread I. Savant
I don't have very much by way of help for you because honestly I don't think there's enough information here for more than generalities, but .. 1) With 1 CPU (NSOperation not used), I get 50% of CPU-time devoted to auto_collection_thread which I presume means Garbage Collection. Is th

Re: Newbie query re multithreading

2009-08-18 Thread I. Savant
On Aug 18, 2009, at 10:36 AM, Jonathan Dann wrote: You may even find that NSOperationQueue/NSOperation allows you to split up your calculations into smaller chunks than 1 per CPU (or effective cores). In support (I think) of this point, have you seen this article, Michael? http://www.

Re: Newbie query re multithreading

2009-08-18 Thread Bill Bumgarner
On Aug 18, 2009, at 7:25 AM, McLaughlin, Michael P. wrote: 1) With 1 CPU (NSOperation not used), I get 50% of CPU-time devoted to auto_collection_thread which I presume means Garbage Collection. Is this normal? It seems excessive. It sounds like your algorithm is doing a tremendous amount

Re: Using Delegation in communicating data between two controllers....

2009-08-18 Thread Evan M
Ric, There is a very good tutorial from Cocoa Dev Central regarding delegates: http://cocoadevcentral.com/articles/75.php And from that article there is a link to another good article as well: http://www.stepwise.com/Articles/Technical/2000-03-03.01.html As mentioned in the articles, del

Re: Mac access to iPhone Document Directory

2009-08-18 Thread Dave Camp
On Aug 18, 2009, at 7:28 AM, Sean Kline wrote: On Mon, Aug 17, 2009 at 9:29 PM, Clark Cox wrote: On Mon, Aug 17, 2009 at 2:12 PM, The Grand Poohbah wrote: I'm writing a Mac application to process data for use with my iPhone app. It would be handy for development purposes to directly read

[newb] Allowing error-prone code line to persist in app

2009-08-18 Thread Chris Paveglio
This is a question of style. My app has text fields to display a number, and with a command I format it like a phone number. So for the second phone number, sometime there is not a second phone (or fax). So my command to format the 2nd phone number logs an error to the console when I run it: NS

Re: [newb] Allowing error-prone code line to persist in app

2009-08-18 Thread bryscomat
There would be NO performance impact to impose the check. Always perform range-checking as it will most likely break under circumstances outside of your development environment. It's not just a matter of style. On Aug 18, 2009, at 11:11 AM, Chris Paveglio wrote: This is a question of style

Re: [newb] Allowing error-prone code line to persist in app

2009-08-18 Thread Kyle Sluder
On Aug 18, 2009, at 9:11 AM, Chris Paveglio wrote: NSString *formattedFax = [NSString stringWithFormat:@"%...@-%@-%@", [originalFax substringWithRange:NSMakeRange(0,3)], etc... *** -[NSCFString substringWithRange:]: Range or index out of bounds This is an error. You must fix it. But

Re: [newb] Allowing error-prone code line to persist in app

2009-08-18 Thread Nick Zitzmann
On Aug 18, 2009, at 10:11 AM, Chris Paveglio wrote: So SHOULD I write the check to make sure the data is valid or not? Do you want your program to work correctly or not? Or just let the function fail because its faster and has no lasting impact? Is it OK if this line quietly (to the user)

Re: [newb] Allowing error-prone code line to persist in app

2009-08-18 Thread Alastair Houghton
On 18 Aug 2009, at 17:11, Chris Paveglio wrote: *** -[NSCFString substringWithRange:]: Range or index out of bounds [snip] So SHOULD I write the check to make sure the data is valid or not? Or just let the function fail because its faster and has no lasting impact? Is it OK if this line q

Re: [newb] Allowing error-prone code line to persist in app

2009-08-18 Thread I. Savant
On Aug 18, 2009, at 12:11 PM, Chris Paveglio wrote: But if there is not a second phone/fax number, I don't really care if this line fails. I certainly *could* write a check like "if (originalFax != @"") then... continue with function". But would that take more time to process? Look up t

Re: [newb] Allowing error-prone code line to persist in app

2009-08-18 Thread Nick Zitzmann
On Aug 18, 2009, at 10:35 AM, I. Savant wrote: In seriousness, yes, very valid point. There are, however, no good localized (localised?) "phone number formatters" built into the system so rolling your own is no small task. And in case anyone needs this, then please join me in filing a bug

Re: [newb] Allowing error-prone code line to persist in app

2009-08-18 Thread Alastair Houghton
On 18 Aug 2009, at 17:35, I. Savant wrote: On Aug 18, 2009, at 12:25 PM, Alastair Houghton wrote: Also, PLEASE remember that there are people who don't live in the United States! WHAT?! Oh, those poor dears! ;-) In seriousness, yes, very valid point. There are, however, no good localiz

Re: Overriding NSCollectionView's selection: a good idea?

2009-08-18 Thread Andrew McClain
Ah! So if I understand you correctly, binding my prototype view back to the NSCollectionViewItem gives me access to each replicated controller? I was missing that completely. So, theoretically, I could subclass the NSCollectionViewItem, give it a reference to my AppController, and then have the bu

Re: [newb] Allowing error-prone code line to persist in app

2009-08-18 Thread Chris Paveglio
OK Thanks everyone for the very helpful input. I've never had any formal computer-science training and take the ease of Applescripting for granted. Moving to Cocoa is going slowly but well. These are the kinds of things I didn't learn in Cocoa Boot Camp (great, but so much yet so little in 7 day

Over Riding Print Function in Cocoa PDE Plugin

2009-08-18 Thread Siva Manne
Is it possible to overriding the print function in Cocoa PDE Plugin ?. I need to do execute some piece of code before printing. In Cocoa PDE Plugin In the sample PDEPlugin code given by apple i found that when i launch the print dialogue and if i select print the only function gets called is deallo

Re: [newb] Allowing error-prone code line to persist in app

2009-08-18 Thread I. Savant
On Aug 18, 2009, at 1:12 PM, Chris Paveglio wrote: BTW This is a corporate-internal application only, so the format of phone numbers doesn't need to handle multiple locales. Did you miss Alastair's second point about the possibility of a user in the US inputting an international customer'

[Moderator] Re: Mac Pro and iMac

2009-08-18 Thread Scott Anguish
Yes, it is not the correct list. Off-topic posts can cause moderation of your postings to the list. On Aug 18, 2009, at 4:54 AM, XiaoGang Li wrote: Hi, List, I know that this is not the suitable list to ask this kind of question, but I really do not know where to post it. Thanks for your

Re: Allowing error-prone code line to persist in app

2009-08-18 Thread Gregory Weston
Chris Paveglio wrote: This is a question of style. My app has text fields to display a number, and with a command I format it like a phone number. So for the second phone number, sometime there is not a second phone (or fax). So my command to format the 2nd phone number logs an error to th

Re: Newbie query re multithreading

2009-08-18 Thread Bill Bumgarner
On Aug 18, 2009, at 10:19 AM, McLaughlin, Michael P. wrote: On 8/18/09 11:34 AM, "Bill Bumgarner" wrote: On Aug 18, 2009, at 7:25 AM, McLaughlin, Michael P. wrote: 1) With 1 CPU (NSOperation not used), I get 50% of CPU-time devoted to auto_collection_thread which I presume means Garbage C

Re: Newbie query re multithreading

2009-08-18 Thread McLaughlin, Michael P.
On 8/18/09 1:46 PM, "Bill Bumgarner" wrote: > On Aug 18, 2009, at 10:19 AM, McLaughlin, Michael P. wrote: > >> On 8/18/09 11:34 AM, "Bill Bumgarner" wrote: >> >>> On Aug 18, 2009, at 7:25 AM, McLaughlin, Michael P. wrote: >>> 1) With 1 CPU (NSOperation not used), I get 50% of CPU-time >>

Syncronizing class files and Core Data entities

2009-08-18 Thread Michael Thon
In XCode, class files for core data entities can be generated by selecting the data model, then selecting New File from the File menu and selecting Managed Object Class from the window. If you edit the class files and then edit the data model, there seems to be no way to sync the changes i

Re: Syncronizing class files and Core Data entities

2009-08-18 Thread Sean Kline
I generally just regenerate the class files. -S On Tue, Aug 18, 2009 at 1:30 PM, Michael Thon wrote: > In XCode, class files for core data entities can be generated by selecting > the data model, then selecting New File from the File menu and selecting > Managed Object Class from the window. If

Re: Syncronizing class files and Core Data entities

2009-08-18 Thread Sean McBride
On 8/18/09 7:30 PM, Michael Thon said: >In XCode, class files for core data entities can be generated by >selecting the data model, then selecting New File from the File menu >and selecting Managed Object Class from the window. If you edit the >class files and then edit the data model, there seem

Pop up button in a tableview cell

2009-08-18 Thread Lynn Barton
I am building a core data application. On one of the windows there is a tableview with two columns. One column contains ordinary text items. The other column I want to contain popup menus so that the user can select one of three values (text). The value choices are the same for every row an

Weird issues with IKImageBrowserView reloaddata

2009-08-18 Thread Alexander Griekspoor
Hi, I'm seeing some weird things reloading the data in my IKImageBrowserView in my GC collected, Leopard app. Basically depending on how I change the contents of my "filteredItems" NSMutableArray I get a different loading behaviour. If I refresh the contents like this the IKImageBrowserView seems

Re: Pop up button in a tableview cell

2009-08-18 Thread Sean Kline
Use a Pop Up Button Cell (NSPopUpButtonCell). - S On Tue, Aug 18, 2009 at 6:33 PM, Lynn Barton wrote: > I am building a core data application. On one of the windows there is a > tableview with two columns. One column contains ordinary text items. The > other column I want to contain popup menus

[iphone] displaying multiple images

2009-08-18 Thread Dragos Ionel
Is there any control that would allow to load multiple images at once and to navigate from one to another by swipe gesture (in the same way one navigates from one screen to another on the iPhone applications screens)? Thanks a lot, Dragos ___ Cocoa-dev m

Coding with VM limitation on the iPhone?

2009-08-18 Thread Jonathon Kuo
I'm writing an app for the iPhone, but I need to be mindful how much virtual memory there is available to the app when it runs, so I can manage allocing and deallocing some large arrays. I'm guessing that the OS runs in a small amount (100MB?) of flash memory compared to the 16GB or 32GB of

Re: [iphone] displaying multiple images

2009-08-18 Thread Bryan Henry
Sounds like a rather simple combination of UIScrollView with it's pagingEnabled property set to YES and some UIImageViews. - Bryan Sent from my iPhone On Aug 18, 2009, at 7:22 PM, Dragos Ionel wrote: Is there any control that would allow to load multiple images at once and to navigate fro

Re: Coding with VM limitation on the iPhone?

2009-08-18 Thread Luke the Hiesterman
Your app will not be paged to the disk at all. It must run entirely on in physical memory. To know when you're running out of memory, override -[UIViewController didReceiveMemoryWarning] Luke On Aug 18, 2009, at 4:34 PM, Jonathon Kuo wrote: I'm writing an app for the iPhone, but I need to b

Re: Coding with VM limitation on the iPhone?

2009-08-18 Thread Bryan Henry
The proper way to manage large objects that can be easily reloaded as needed is to make sure and respond to memory warnings. The exact amount of memory available to your application depends on both the device (which could vary greatly in terms of hardware resources) and other processes runn

Re: Coding with VM limitation on the iPhone?

2009-08-18 Thread Alex Kac
You typically only get about 5-40MB of available RAM. Its not flash. Its real RAM. But you have no guarantees. The iPhone has a robust memory system with low memory warnings and such and you just have to use those to determine if you have enough. On Aug 18, 2009, at 6:34 PM, Jonathon Kuo wr

Re: Coding with VM limitation on the iPhone?

2009-08-18 Thread Bryan Henry
Oh, I forgot to add - specifically you can either override - [UIViewController didReceiveMemoryWarning] or listen for the (this is from memory, so verify it with the docs) UIApplicationDidReceiveMemoryWarningNotification notification if you need to do something in other than a view controlle

How to make it bounce!

2009-08-18 Thread Graham Cox
Can someone point me in the right direction of the docs for getting my app icon bouncing? I have a dialog that needs to ask for attention if the app is not active, and it's not happening automatically. Hmmm, maybe that's the problem I should be looking into...? --Graham

Re: Coding with VM limitation on the iPhone?

2009-08-18 Thread Jonathon Kuo
On Aug 18, 2009, at 4:37 PM, Luke the Hiesterman wrote: Your app will not be paged to the disk at all. It must run entirely on in physical memory. To know when you're running out of memory, override -[UIViewController didReceiveMemoryWarning] On Aug 18, 2009, at 4:38 PM, Alex Kac wrote: Yo

Re: How to make it bounce!

2009-08-18 Thread bryscomat
if(![[NSApplication sharedApplication] isActive]) [[NSApplication sharedApplication] requestUserAttention:NSInformationalRequest]; Try that. :) On Aug 18, 2009, at 6:49 PM, Graham Cox wrote: Can someone point me in the right direction of the docs for getting my app icon bouncing? I have

Need advice about how to create a Cocoa Framework

2009-08-18 Thread Gevik
Hi All, I have an old C library which I need to reuse in my Cocoa applications. The C library has some header files. (contact.h and exchange.h etc ...) There are also two lib files (exchanger.a and archiver.a). I would like to know what (and how) the recommended way is to bundle my C library

Re: How to make it bounce!

2009-08-18 Thread Graham Cox
Cool, thanks! :) On 19/08/2009, at 9:59 AM, bryscomat wrote: if(![[NSApplication sharedApplication] isActive]) [[NSApplication sharedApplication] requestUserAttention:NSInformationalRequest]; Try that. :) On Aug 18, 2009, at 6:49 PM, Graham Cox wrote: Can someone point me in the right

Re: Coding with VM limitation on the iPhone?

2009-08-18 Thread Steve Christensen
On Aug 18, 2009, at 4:53 PM, Jonathon Kuo wrote: On Aug 18, 2009, at 4:37 PM, Luke the Hiesterman wrote: Your app will not be paged to the disk at all. It must run entirely on in physical memory. To know when you're running out of memory, override -[UIViewController didReceiveMemoryWarning]

Re: Newbie query re multithreading

2009-08-18 Thread Greg Parker
On Aug 18, 2009, at 7:25 AM, McLaughlin, Michael P. wrote: 1) With 1 CPU (NSOperation not used), I get 50% of CPU-time devoted to auto_collection_thread which I presume means Garbage Collection. Is this normal? It seems excessive. 2) With 2 CPUs, I get 26% of CPU-time for auto_collection_th

NSTableView empty selection not working

2009-08-18 Thread PCWiz
Hi, All of a sudden empty selection on my NSTableView won't work. I have it set to allow empty selection in IB, and I've also tried programmatically setting it with setAllowsEmptySelection: but it doesn't work. Something always has to be selected Thanks ___

Re: NSTableView empty selection not working

2009-08-18 Thread Graham Cox
On 19/08/2009, at 10:55 AM, PCWiz wrote: All of a sudden empty selection on my NSTableView won't work. I have it set to allow empty selection in IB, and I've also tried programmatically setting it with setAllowsEmptySelection: but it doesn't work. Something always has to be selected Wor

Re: Coding with VM limitation on the iPhone?

2009-08-18 Thread Cem Karan
Jonathon Kuo wrote on August 18, 2009 7:34:06 PM EDT: I'm writing an app for the iPhone, but I need to be mindful how much virtual memory there is available to the app when it runs, so I can manage allocing and deallocing some large arrays. I'm guessing that the OS runs in a small amount (1

Re: int to bytes(value in NSString)

2009-08-18 Thread bosco fdo
Hi  all    I dont want in binaries('1', '0'), but i want to convert int to bytes(byte value string) for example in java working code when i convert int value 1 to byte value in 4 square like chars(unreadable format) the same thing i need to do in objective c thanks for the help bos On Tue, A

Re: NSTableView empty selection not working

2009-08-18 Thread I. Savant
On Tuesday, August 18, 2009, PCWiz wrote: > Hi, > > All of a sudden empty selection on my NSTableView won't work. I have it set > to allow empty selection in IB, and I've also tried programmatically setting > it with setAllowsEmptySelection: but it doesn't work. Something always has to > be sel

I need to convert NSTableView data into something suitable for consumption by a spreadsheet

2009-08-18 Thread Michael A. Crawford
I have an application that uses an NSTableView, bindings, and an NSArrayController to manage some data pertinent to my application. While running the application, I realize that I need to do some statistical analysis on the data in the table-view and it would be a nice feature to dump this

Re: I need to convert NSTableView data into something suitable for consumption by a spreadsheet

2009-08-18 Thread Graham Cox
On 19/08/2009, at 7:27 AM, Michael A. Crawford wrote: So, I'm looking for suggestions as to the best way to add this feature. I could iterate through the objects in the array and use some posix code to write the data out in CSV format but there must be a better, more Cocoa oriented, way.

Re: I need to convert NSTableView data into something suitable for consumption by a spreadsheet

2009-08-18 Thread Kyle Sluder
Coming at it from the point of NSTableView is attacking from the wrong direction. You should be exporting your model data as CSV; a controller (in your case, likely an NSArrayController subclass that takes the place of your existing NSArrayController—or perhaps your NSDocument subclass) sho

Throwing NSException in custom linked framework?

2009-08-18 Thread Robert Mullen
I am building a data access layer in a Cocoa Framework and calling it from a test harness. All is working well until I get to my error trapping. I throw an NSException from a called method in the Framework and the caller has a @t...@catch=@finally block but it is not getting triggered. I se

Re: Throwing NSException in custom linked framework?

2009-08-18 Thread Kyle Sluder
Sounds like you're breaking on objc_exception_throw, which is going to happen when the exception is raised—and therefore before it's caught. --Kyle Sluder___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mod

(no subject)

2009-08-18 Thread PCWiz
___ 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.co

Get size of folder

2009-08-18 Thread PCWiz
Hi, I need a good method to find the size of a file or folder exactly as displayed in Finder. I've tried every method I could find on the internet, from using the du shell utility with NSTask to using the Carbon file manager. I need something that will work under heavy load (processing hu

Re: Syncronizing class files and Core Data entities

2009-08-18 Thread Michael Thon
On Aug 18, 2009, at 11:06 PM, Sean McBride wrote: On 8/18/09 7:30 PM, Michael Thon said: In XCode, class files for core data entities can be generated by selecting the data model, then selecting New File from the File menu and selecting Managed Object Class from the window. If you edit the c

NSTableColumn loses 'value' binding when data cell set to NSButtonCell?

2009-08-18 Thread John McLaughlin
Hi All, I've got an app that I'm creating NSTableColumn's on the fly and binding them to an array controller. It all works fine but tonight I needed to change one of the columns to have a NSButtonCell. NSButtonCell *cell=[[[NSButtonCell alloc]init]autorelease]; [tc setDataCell:cell]; (tc is th