Re: Scripting Bridge running method passing an array

2009-10-29 Thread Scott
Thanks for the response Kyle. I will ask Rogue. This is how you send commands via AS tell application "Airfoil" -- Connect to Airport Express connect to (every speaker whose name is "Computer") end tell On Fri, Oct

Re: Scripting Bridge and Xcode rule problem

2009-10-29 Thread Kyle Sluder
On Wed, Oct 28, 2009 at 3:08 PM, timm...@gmail.com wrote: > Anyone have any ideas why sometimes sdef fails like that? Also, is it > possible to make System Preferences open once and/or quit after sdef and sdp > have finished with it? Even though this isn't Xcode-users (where your sdp/sdef questio

Re: Scripting Bridge running method passing an array

2009-10-29 Thread Kyle Sluder
On Thu, Oct 29, 2009 at 7:13 PM, Scott wrote: > - (void) connectTo:(NSArray *)x password:(NSString *)password;  // > Connect to the Airport Express speakers > - (void) disconnectFrom:(NSArray *)x;  // Disconnect from the speakers What kind of objects do these commands take when using them from Ap

Re: Cocoa conventions for floats & ints

2009-10-29 Thread Greg Parker
On Oct 28, 2009, at 2:35 AM, Bryan Pietrzak wrote: I found this information: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Cocoa64BitGuide/64BitChangesCocoa/64BitChangesCocoa.html#//apple_ref/doc/uid/TP40004247-CH4-SW11 where NSInteger is discussed, but I was a bit surpr

Re: Breakpoint bubbles

2009-10-29 Thread Kyle Sluder
On Wed, Oct 28, 2009 at 5:58 PM, Charlie Dickman <3tothe...@comcast.net> wrote: > Breakpoint bubbles have started showing in the midst of my debugging window > for each breakpoint I have set. Please ask the Xcode-users list. --Kyle Sluder ___ Cocoa-dev

Re: Trying blocks

2009-10-29 Thread Greg Parker
On Oct 28, 2009, at 5:56 PM, Charlie Dickman wrote: It compiles fine but the load fails with... "__NSConcreteGlobalBlock", referenced from: ___block_holder_tmp_1.1207 in Controller.o ld: symbol(s) not found collect2: ld returned 1 exit status Can anyone explain this and help me with what

Scripting Bridge running method passing an array

2009-10-29 Thread Scott
Hello, I'm just learning Objective-C/Cocoa with limited programming background. I am trying to control an application via AppleScript commands using Scripting Bridge. I am able to do almost everything I want except for two methods I can't get to work. I would like to implement the following method

Re: NSManagedObjectModel

2009-10-29 Thread Logan Cautrell
For the record, I found using NSKeyedArchiver and it's companion to work quite well in saving my generated MOM. I simply serialize the MOM into my app's documents directory after I have generated it. I then deserialize it as needed during subsequent application sessions. -logan On Oct 28, 20

PolKit for Leopard and later

2009-10-29 Thread Pierre-Olivier Latour
Hi everyone, I wanted to let you know about this collection of reusable Obj-C classes which I have used in several projects and have open-sourced some time ago. It's called "PolKit" and provides features like advanced networking, file system utilities, HID, MIDI & serial port devices support, Open

show as free/busy API for iCal

2009-10-29 Thread Nava Carmon
Hi, I need to retrieve the "show as free/busy" property of iCal event. I couldn't find any matching property in CalendarStore.framework headers. This property has became available in iCal only for Snow Leopard. How can i get it in my application? Thanks a lot, Nava. ___

Breakpoint bubbles

2009-10-29 Thread Charlie Dickman
Breakpoint bubbles have started showing in the midst of my debugging window for each breakpoint I have set. What have I done to cause this and how do I stop it from happening? Charlie Dickman 3tothe...@comcast.net ___ Cocoa-dev mailing list (Coco

Trying blocks

2009-10-29 Thread Charlie Dickman
I am trying to implement a block in one of my apps. The code looks like this... BOOL (^fillWindow)(void) = ^(void) { BOOL empty = YES; int s = 0; for (NSTextField *theTextField in textFieldArray) { int textFieldValu

NSManagedObjectModel

2009-10-29 Thread Logan Cautrell
I"m programmatically generating an NSManagedObjectModel (based on a web service). I am aware of the potential risks in doing this and have known issues and contingencies planned for. My question is how do I persist changes to the model? The MOC that I create from the model persists properly, bu

Scripting Bridge and Xcode rule problem

2009-10-29 Thread timm...@gmail.com
Hello, I followed the Read Me included in the SBSystemPrefs sample code to have Xcode automatically generate the Scripting Bridge headers for any application I add to my project (currently I am only using System Preferences). The problem is every time I build my project, either 2 instance

Cocoa conventions for floats & ints

2009-10-29 Thread Bryan Pietrzak
I've just started getting back into programming after being out of the game for a few years. When I was last coding for a living it was with Carbon. Now I'm jumping into Cocoa. Just a quick question about conventions. Previously it seemed the carbon world was moving to an abstract way to d

RE: createbackupPath from boost library not working for MAC OSX

2009-10-29 Thread Nikhil Khandelwal
Sorry, I mean to say MAC OSX. Thanks, Nikhil -Original Message- From: Kyle Sluder [mailto:kyle.slu...@gmail.com] Sent: Friday, October 30, 2009 11:44 AM To: Nikhil Khandelwal Cc: Cocoa-dev@lists.apple.com Subject: Re: createbackupPath from boost library not working for MAC On Thu, Oct 29

Re: createbackupPath from boost library not working for MAC

2009-10-29 Thread Kyle Sluder
On Thu, Oct 29, 2009 at 11:03 PM, Nikhil Khandelwal wrote: > Is it a known issue on MAC that createbackupPath from boost library does not > behave as expected. 1) It's Mac, not MAC. MAC is an acronym for Media Access Control, and is related to Ethernet networking. 2) This is Cocoa-dev, not Boo

createbackupPath from boost library not working for MAC

2009-10-29 Thread Nikhil Khandelwal
Hi List, I am running unit test cases to check the functionality. In this I am checking createbackupPath of boost library. Its working well for windows platform but not able to create backupPath for MAC. It throws some exception and later on when I tried to copy some file on the same location

Re: [iphone] in app store - remembering a purchase

2009-10-29 Thread Stuart Carnie
No, you should still provide some option to 'restore transactions' for non-consumable / subscription based items. See Restoring Transactions

Re: The ghost in the bundle

2009-10-29 Thread Ron Fleckner
On 30/10/2009, at 3:16 PM, Graham Cox wrote: On 30/10/2009, at 2:51 PM, Pierre Berloquin wrote: It looks like the app is going to carry a ghost load forever, that I don't need. What can I do? Are you sure you did a clean build? If not, the new folder will be added, but the OLD resourc

Re: The ghost in the bundle

2009-10-29 Thread Graham Cox
On 30/10/2009, at 2:51 PM, Pierre Berloquin wrote: It looks like the app is going to carry a ghost load forever, that I don't need. What can I do? Are you sure you did a clean build? If not, the new folder will be added, but the OLD resources are not moved or deleted, so they'll still

The ghost in the bundle

2009-10-29 Thread Pierre Berloquin
OK here is a mystery for you. Before I knew how to use a Copy Files build phase, I placed a bunch of jpg's in the scope of the product, dragged them in the Resources folder and hit the bundle with [listeImages addObjectsFromArray:[mainBundle pathsForResourcesOfType:@"jpg" inDirectory:nil]]; That

Re: Detecting a network connection

2009-10-29 Thread Jens Alfke
On Oct 29, 2009, at 6:35 PM, colors wrote: So before I try to communicate with the server, I would like to know that I can actually get off the machine to some kind of network. This will help avoid having to wait for curl to timeout. It looks like NSHost and SCNetwork... depend on having

[iphone] in app store - remembering a purchase

2009-10-29 Thread Dragos Ionel
excerpt from: *Built-in Product Model* * In the built-in product model, everything r

Re: Detecting a network connection

2009-10-29 Thread Shawn Erickson
On Thu, Oct 29, 2009 at 6:35 PM, colors wrote: > One challenge I am facing is that there are cases where the product I am > working on is run within a network that does not have extranet access, but > need to access a server inside the network. I do not know what the domain > or address is for t

Re: Cocoa bindings problem

2009-10-29 Thread I. Savant
On Oct 29, 2009, at 9:44 PM, Squ Aire wrote: My problem is that when I bind a some text field to the "last login date" column, and choose multiple rows with same date (but NOT THE SAME TIME), I get "Multiple Values". Do you mean you have a separate NSTextView or NSTextField that is boun

Re: how to filter available fonts for my application?

2009-10-29 Thread XiaoGang Li
Thanks a lot. I will try. On Fri, Oct 30, 2009 at 12:33 AM, Jens Alfke wrote: > > On Oct 29, 2009, at 9:02 AM, Ross Carter wrote: > > Do you really need to support 10.3? I'm sure there are few copies of it >>> still in the wild, and someone who hasn't even upgraded the OS in five years >>> is u

Cocoa bindings problem

2009-10-29 Thread Squ Aire
Let's say I have a table view bound to an array controller which in turn is bound to a MOC... you all know how it works. The table view has two columns: "Name" and "Last Login Date". The thing is that in underneath in the model, the "last login date" is stored with both date and time informati

[MEET] (Sydney/Australia) CocoaHeads/NSCoder Sydney - November 5th - Mac/iPhone hack night

2009-10-29 Thread Mark Aufflick
First Thursday of the month == one of CocoaHeads Sydney or NSCoder Sydney (Australia). After much discussion (and an excellent Guinness pie) we have decided on an alternating calendar - one month we'll have a CocoaHeads night, with presentations etc. - the alternate month we'll have an NSCoder nig

Re: Detecting a network connection

2009-10-29 Thread colors
One challenge I am facing is that there are cases where the product I am working on is run within a network that does not have extranet access, but need to access a server inside the network. I do not know what the domain or address is for this server, since it is different for each instal

Re: Help debugging "Dangling reference to an invalid object." Core Data error

2009-10-29 Thread Ben Trumbull
On Oct 29, 2009, at 16:55 , Sean McBride wrote: > On 10/22/09 4:59 PM, Melissa J. Turner said: > >>> I have an entity 'Scene' with a to-many relationship to an entity >>> 'Target'. The inverse relationship is also to-many. Both relationships >>> are optional and the delete rule for both sides

[MEET] November CocoaHeads Mac Developer Meetings

2009-10-29 Thread Stephen Zyszkiewicz
Greetings, CocoaHeads is an international Mac programmer's group. Meetings are free and open to the public. We specialize in Cocoa, but everything Mac programming related is welcome. Upcoming meetings: Austria Wien- Thursday, November 12, 2009 19:00. Canada Ottawa/Gatineau- Thursday, Novem

Re: Help debugging "Dangling reference to an invalid object." Core Data error

2009-10-29 Thread Sean McBride
On 10/22/09 4:59 PM, Melissa J. Turner said: >> I have an entity 'Scene' with a to-many relationship to an entity >> 'Target'. The inverse relationship is also to-many. Both relationships >> are optional and the delete rule for both sides is nullify. >> >> To repro, I delete all Scenes then try

Re: 10.4 System Preferences Cannot Find Its Main Window When Launched by a Pane Bundle

2009-10-29 Thread Grant Erickson
On 10/29/09 8:38 AM, Michael Ash wrote: > On Wed, Oct 28, 2009 at 7:18 PM, Grant Erickson wrote: >> I am working on a preference pane and in order to accommodate differences >> among 10.4 and 10.5 and later without hard-coding widths, I call my own >> [self resizeView] from mainViewDidLoad to adju

Re: Changing the NSView bounds origin point

2009-10-29 Thread Gustavo Pizano
hehe.. well the problem is that it happens only with NSView when I apply the same to a NSButtonCell it does it normally. So far I pass the rectangle to the algorithm with a negative height and the origin to be (0, height) and it works,. but Im not happy with this solution. G. On Oct 29,

Re: Changing the NSView bounds origin point

2009-10-29 Thread Kyle Sluder
On Thu, Oct 29, 2009 at 2:37 PM, Gustavo Pizano wrote: > I have a custom NSView and Im drawing in it a glossy background, BUT it > seems the algorithm that Im using assumes as coordinates origin to be on the > upper left corner and the nsview origin start on the bottom left corner. Is > there any

Re: Changing the NSView bounds origin point

2009-10-29 Thread Jens Alfke
On Oct 29, 2009, at 2:37 PM, Gustavo Pizano wrote: I have a custom NSView and Im drawing in it a glossy background, BUT it seems the algorithm that Im using assumes as coordinates origin to be on the upper left corner and the nsview origin start on the bottom left corner. Is there any work

Changing the NSView bounds origin point

2009-10-29 Thread Gustavo Pizano
Hello. I have a custom NSView and Im drawing in it a glossy background, BUT it seems the algorithm that Im using assumes as coordinates origin to be on the upper left corner and the nsview origin start on the bottom left corner. Is there any work around this? Thanks Gustavo.

re: "Could not merge data"-error on save in a single moc app

2009-10-29 Thread Ben Trumbull
> I get a "Could not merge changes"-error on save in a single moc app > (*). The docs state this is a problem of a multi-moc setup: > > http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CoreData/Articles/cdTroubleshooting.html > Yes, the MOC you are saving refers to data tha

Re: Showing activity indicator during data download

2009-10-29 Thread Jens Alfke
On Oct 29, 2009, at 9:40 AM, DKJ wrote: I did implement this, and got it to work. But some of the files I'm downloading are XML data that needs to be parsed. And the parser can't start until the file download is complete, which is what made the synchronous download so appealing. It's ann

Re: Binding To Array Controller From A Different XIB?

2009-10-29 Thread I . Savant
On Oct 29, 2009, at 1:57 PM, Quincey Morris wrote: The natural mechanism for controlling the appearance of such a menu item (including its text, its check mark and its enabled state) is to use interface validation (validateUserInterfaceItem: or validateMenuItem:) in each possible controllin

re: EXC_BAD_ACCESS when migrating a store, but only sometimes...

2009-10-29 Thread Ben Trumbull
> I've come across a rather perplexing problem which is driving me nuts. > I'm attempting to migrate a core data SQLite store to the current > model version, and most of the time it works fine. However, sometimes > I get an EXC_BAD_ACCESS in the following stack: > > objc_assign_strongCast +

Re: Runloop hangs/stops when clicking programmatically on GUI

2009-10-29 Thread Kyle Sluder
2009/10/29 Gabriel Höhener : > How can I avoid that my program "hangs" when I programmatically simulate a > mouseclick on my app window? Why are you simulating mouse clicks? This is usually an indication of a very poor design. > If I simulate a click on the desktop or any other app or app compon

Re: Binding To Array Controller From A Different XIB?

2009-10-29 Thread Quincey Morris
On Oct 29, 2009, at 10:32, I. Savant wrote: I assume the menu item is a main menu item in your MainMenu.xib? Is the 'the other' xib the document prototype for an NS*Document-based application? If so, you can bind to File's Owner, using the path, "mainWindow.windowController.document.property",

Re: Showing activity indicator during data download

2009-10-29 Thread Matt Neuburg
On Thu, 29 Oct 2009 16:00:42 +, Alastair Houghton said: >To be honest, it's going to be easiest just to use the asynchronous >NSURLConnection approach. It really isn't that hard I'd have to agree with this. I just tried NSURLConnection for the first time and it worked perfectly right out of

Re: Binding To Array Controller From A Different XIB?

2009-10-29 Thread Chunk 1978
ahhh, that was easy! thanks for clearing this up for me :) On Thu, Oct 29, 2009 at 1:32 PM, I. Savant wrote: > On Thu, Oct 29, 2009 at 1:07 PM, Chunk 1978 wrote: > > i've created an NSMenuItem in the MainMenu.xib that targets an action in > a > > different XIB thru the first responder. the act

Re: Binding To Array Controller From A Different XIB?

2009-10-29 Thread I. Savant
On Thu, Oct 29, 2009 at 1:07 PM, Chunk 1978 wrote: > i've created an NSMenuItem in the MainMenu.xib that targets an action in a > different XIB thru the first responder.  the action removes an object from > the array.  however, i'd like to binn the NSMenuItem object to the array > controller's can

How to increase the height of NSTableView Header

2009-10-29 Thread Arun
Hi All, Does any one know how can we increase the Height of the NSTableView Header? In the IB, the height is fixed and non-editable. Thanks Arun KA ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator c

Binding To Array Controller From A Different XIB?

2009-10-29 Thread Chunk 1978
i've created an NSMenuItem in the MainMenu.xib that targets an action in a different XIB thru the first responder. the action removes an object from the array. however, i'd like to binn the NSMenuItem object to the array controller's canRemove controller key so that the NSMenuItem is only accassa

Re: Showing activity indicator during data download

2009-10-29 Thread Alastair Houghton
On 29 Oct 2009, at 16:40, DKJ wrote: On 2009-10-29, at 9:00 , Alastair Houghton wrote: it's going to be easiest just to use the asynchronous NSURLConnection approach. I did implement this, and got it to work. But some of the files I'm downloading are XML data that needs to be parsed. And

Re: Showing activity indicator during data download

2009-10-29 Thread DKJ
On 2009-10-29, at 9:00 , Alastair Houghton wrote: it's going to be easiest just to use the asynchronous NSURLConnection approach. I did implement this, and got it to work. But some of the files I'm downloading are XML data that needs to be parsed. And the parser can't start until the file

Re: Showing activity indicator during data download

2009-10-29 Thread Jens Alfke
On Oct 29, 2009, at 9:00 AM, Alastair Houghton wrote: If you insist on using threading, then yes, you could do this in the background with an NSOperationQueue (or by using NSThread directly). As for Foundation objects and thread-safety, note that immutable objects generally *are* thread-s

Re: how to filter available fonts for my application?

2009-10-29 Thread Jens Alfke
On Oct 29, 2009, at 9:02 AM, Ross Carter wrote: Do you really need to support 10.3? I'm sure there are few copies of it still in the wild, and someone who hasn't even upgraded the OS in five years is unlikely to be installing new apps, anyway. I think the question is how to support post-10

Re: Showing activity indicator during data download

2009-10-29 Thread Alastair Houghton
On 29 Oct 2009, at 16:04, DKJ wrote: On 2009-10-29, at 7:05 , Alastair Houghton wrote: the code above is a no-no Thanks for your reply. I'm using a UIActivityIndicatorView, and I found a place in the docs where it says almost all of UIKit is not thread-safe. But just out of curiosity, w

Re: how to filter available fonts for my application?

2009-10-29 Thread Ross Carter
On Oct 29, 2009, at 11:17 AM, Jens Alfke wrote: But the Reference> tells me that this delegate methods is not called in Mac OS X version 10.3 and later. I don't have any idea how to implement it now? does anyone know it? thanks Do you really need to support 10.3? I'm sure there are few c

Re: Showing activity indicator during data download

2009-10-29 Thread Alastair Houghton
On 29 Oct 2009, at 15:08, DKJ wrote: On 2009-10-29, at 7:05 , Alastair Houghton wrote: You need to rewrite your code so that the download is asynchronous. Would doing the NSOperationQueue thing with my updateDataFiles method be OK? The docs (Appendix A of "Threading Programming Guide") li

Re: 10.4 System Preferences Cannot Find Its Main Window When Launched by a Pane Bundle

2009-10-29 Thread Michael Ash
On Wed, Oct 28, 2009 at 7:18 PM, Grant Erickson wrote: > I am working on a preference pane and in order to accommodate differences > among 10.4 and 10.5 and later without hard-coding widths, I call my own > [self resizeView] from mainViewDidLoad to adjust the view width as > appropriate: > >    -

Re: how to filter available fonts for my application?

2009-10-29 Thread Jens Alfke
On Oct 29, 2009, at 1:34 AM, XiaoGang Li wrote: But the Reference> tells me that this delegate methods is not called in Mac OS X version 10.3 and later. I don't have any idea how to implement it now? does anyone know it? thanks Do you really need to support 10.3? I'm sure there are few

Re: Showing activity indicator during data download

2009-10-29 Thread DKJ
On 2009-10-29, at 7:05 , Alastair Houghton wrote: You need to rewrite your code so that the download is asynchronous. Would doing the NSOperationQueue thing with my updateDataFiles method be OK? The docs (Appendix A of "Threading Programming Guide") lists NSString as being thread-safe. ___

Runloop hangs/stops when clicking programmatically on GUI

2009-10-29 Thread Gabriel Höhener
Hello together How can I avoid that my program "hangs" when I programmatically simulate a mouseclick on my app window? If I simulate a click on the desktop or any other app or app component, everything works fine, but if I click programmatically on a let's say a button or a slider, the GUI trie

Re: Showing activity indicator during data download

2009-10-29 Thread Alastair Houghton
On 29 Oct 2009, at 08:36, DKJ wrote: I replaced the line: [downloadIndicator startAnimating]; with this: NSInvocationOperation *theOp = [[[NSInvocationOperation alloc] initWithTarget:downloadIndicator selector:@selector(startAnimating) object:nil] autorelease]; NSOperationQueue

Re: Seemingly Documentation confusion?

2009-10-29 Thread Michael de Haan
Will do...thank you. On Oct 29, 2009, at 5:03 AM, I. Savant wrote: On Oct 29, 2009, at 7:58 AM, Michael de Haan wrote: In "NSDraggingDestination Protocol Reference (informal protocol)", it states: ... The methods ( which include ) - prepareForDragOperation: required method -

Re: Seemingly Documentation confusion?

2009-10-29 Thread I. Savant
On Oct 29, 2009, at 7:58 AM, Michael de Haan wrote: In "NSDraggingDestination Protocol Reference (informal protocol)", it states: ... The methods ( which include ) - prepareForDragOperation: required method - performDragOperation: required method - concludeDragOperatio

Seemingly Documentation confusion?

2009-10-29 Thread Michael de Haan
I wonder if someone could explain the following. In "NSDraggingDestination Protocol Reference (informal protocol)", it states: "The NSDraggingDestination informal protocol declares methods that the destination object (or recipient) of a dragged image must implement." The methods ( wh

"Could not merge data"-error on save in a single moc app

2009-10-29 Thread Ruotger Skupin
Hi, I get a "Could not merge changes"-error on save in a single moc app (*). The docs state this is a problem of a multi-moc setup: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CoreData/Articles/cdTroubleshooting.html The error does not appear on every system and seem

Of FontManagers and responder chains

2009-10-29 Thread Chris Idou
I am trying to implement choosing default fonts, as found in the OS-X 10.6 version of TextEdit's Preferences dialog. i.e., you press a button, and it brings up the Font Chooser, and you select a font and it shows the name of the font in the dialog. Now I thought I had it all working, but the

Re: A distinct group of pictures in the bundle

2009-10-29 Thread Ron Fleckner
Hmm... maybe I'm the dumb one. I don't see why one would want to futz with a copy files build phase. I've never done that and, as they say, It Just Works™. Maybe I've been lucky... Ron On 29/10/2009, at 8:25 PM, Pierre Berloquin wrote: I was quite dumb. Had I but read the documentation

Re: Cocoa replacement for Carbon CompositeIconRef() for Snow Leopard 64-bit apps?

2009-10-29 Thread Dave Keck
> Why would  [NSArray initWithArray:copyItems:] be calling release on any > object? When that method copies the objects in the supplied array, the copies start with a retain count of 1. Then, when each of these copies are placed into the new array, their retain count becomes 2. -initWithArray:copy

Re: Showing activity indicator during data download

2009-10-29 Thread Claus Guttesen
> I've implemented an update button like this: > > - (IBAction)updateButton:(id)sender > { >   [UIApplication sharedApplication].networkActivityIndicatorVisible = YES; >   [downloadIndicator startAnimating]; > >   [[DataManager sharedDataManager] updateDataFiles]; > >   [downloadIndicator stopAnima

Re: A distinct group of pictures in the bundle

2009-10-29 Thread Pierre Berloquin
I was quite dumb. Had I but read the documentation on Copy Files ... Indeed the directory you enter there is the one you can access in the bundle. What I didn't see is that the files must be entered into the resources first. Just what I was looking for. I was misled by old blogs from the past, app

Re: Cocoa replacement for Carbon CompositeIconRef() for Snow Leopard 64-bit apps?

2009-10-29 Thread Peter N Lewis
On 28/10/2009, at 13:49 , Peter N Lewis wrote: So in order to convert from using IconRef to using NSImage for everything (after loading the IconRef), I need to know how to: a) composite two images, preferably while keeping the different resolutions of the icon b) how to dim an image similar

Re: Showing activity indicator during data download

2009-10-29 Thread DKJ
On 2009-10-29, at 0:30 , DKJ wrote: - (IBAction)updateButton:(id)sender { [UIApplication sharedApplication].networkActivityIndicatorVisible = YES; [downloadIndicator startAnimating]; [[DataManager sharedDataManager] updateDataFiles]; [downloadIndicator stopAnimating]; [UIApplicati

how to filter available fonts for my application?

2009-10-29 Thread XiaoGang Li
I searched the lists before posting this question, and found that it is an old topics, but I am still confused. I have an application which can use only a subset of fonts installed in the system. So, I need to filter my available fonts, and users just can see the available fonts from the font pane

NSTextFieldCell subclass hobbles the field editor

2009-10-29 Thread Jonathan Fewtrell
I have a subclass of NSTextFieldCell as the dataCell of an NSTableColumn. When I click on the cell to edit the text, the field editor appears, but instead of displaying the text that was in the cell it displays the word 'Field' and cannot be edited. This happens even if the subclass is 'emp

Showing activity indicator during data download

2009-10-29 Thread DKJ
I've implemented an update button like this: - (IBAction)updateButton:(id)sender { [UIApplication sharedApplication].networkActivityIndicatorVisible = YES; [downloadIndicator startAnimating]; [[DataManager sharedDataManager] updateDataFiles]; [downloadIndicator stopAnimating];