Re: outline view with mail style folder counts in rounded rectangle

2009-10-28 Thread Matthew Lindfield Seager
> could someone point me in the right direction, what is the easiest way of > doing this? would i have to override the text cell for the outline view, or > can i use a value transformer of some sort? I'm sure someone will correct me if (when?) I'm wrong but I've heard them called badges. Googling

can the button responce the second click before the first is finished before?

2009-10-28 Thread XiaoGang Li
when user click the OK button, the application will fall into a for loop for a long time, how to jump out the for loop without using multi-threads? like this: BOOL bStop = NO; - (IBAction)okButton:(id)sender { //user can click the button again to stop the action to continue. [okButton s

Re: Problem with allocating memory

2009-10-28 Thread Michael Abendroth
Thanks for the input! Using the %p printing, I found out that I might not actually have the problem I thought I had. I checked for the addresses in memory of the entries. They are all different so I guess the problem isn't that they all point to the same object. Basically, I got a source list to wi

Single Static Library for iPhone and Desktop applications

2009-10-28 Thread Karolis Ramanauskas
Good day, I'm trying to set up a single static library, I only need it to link against Foundation, for both iPhone and Desktop applications. I can easily configure one library for iPhone application only, same with desktop application. However when I try to make one static library work with both e

Re: Single Static Library for iPhone and Desktop applications

2009-10-28 Thread Karolis Ramanauskas
...also I wanted to ask, in case this is not possible how do I avoid copying existing classes I have written for desktop and using them in iPhone? I can easily create two versions of static library and keep copying/pasting files between them, but it seems cumbersome. Thanks again _

Re: Single Static Library for iPhone and Desktop applications

2009-10-28 Thread Jean-Daniel Dupas
Le 28 oct. 2009 à 10:44, Karolis Ramanauskas a écrit : ...also I wanted to ask, in case this is not possible how do I avoid copying existing classes I have written for desktop and using them in iPhone? I can easily create two versions of static library and keep copying/ pasting files betwe

Re: can the button responce the second click before the first is finished before?

2009-10-28 Thread Alexander Spohr
Am 28.10.2009 um 10:19 schrieb XiaoGang Li: jump out the for loop if the bStop flag changed to YES. How to implement it? Use another thread to run your for loop. atze ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Problem with allocating memory

2009-10-28 Thread Alexander Spohr
Am 28.10.2009 um 10:27 schrieb Michael Abendroth: Why is this happening? How should we know if you don’t provide the faulty code? atze ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

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

2009-10-28 Thread Daniel Kennett
Hi list, 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: waiting for async callback in main thread

2009-10-28 Thread Dave Keck
Recursive run loops always lead to cleaner but worse code (IMO, of course :)). Recursive mouse tracking, for example, keeps all the code dealing with the state changes in one place, and allows for method-scope variables that keep track of the state rather than ivars. On the other hand, you have to

Re: Odd window behavior LSUIElement=1

2009-10-28 Thread Matthew Lindfield Seager
> Let's say I have existing applications running, "A" with a window on top of > application "B". My program pops up a window and forces it to the front. So I > have "MyApp" on top of "A" on top of "B". Now I click on Application "A", > bringing it to the front. Now I have "A" on top of "MyApp" o

Re: Adding new Core Data objects through a form

2009-10-28 Thread Martin Cote
> Martin, you should also have a look at how it's done in Apple's > DepartmentAndEmployees sample project. > > http://developer.apple.com/mac/library/samplecode/DepartmentAndEmployees/listing13.html Yes, I looked into this one. Actually, this sample is what made me realize that you could bind man

Re: Adding new Core Data objects through a form

2009-10-28 Thread Martin Cote
I just replied directly to Kyle, here's my response: On Wed, Oct 28, 2009 at 12:16 AM, Kyle Sluder wrote: > On Tue, Oct 27, 2009 at 6:58 PM, Martin Cote wrote: >> I'm trying to do something really simple with Core Data, but I can't >> find a graceful way to do it. > > Perhaps we can agree on "id

Updating property of core data entity does not update outline view

2009-10-28 Thread Richard
hey thanks, that is exactly what i was looking for, i have got it working now (nearly). so, a related question. i have an outline view and when searches are performed a new item is added to the outline view with a badge that displays the number of search results. the outline view is bound to a tr

Re: Problem with allocating memory

2009-10-28 Thread Jeremy Pereira
On 28 Oct 2009, at 09:27, Michael Abendroth wrote: Basically, I got a source list to witch the user can add entries via a button. The user can also edit the entries title by double clicking on it. The problem is that when you add 3 entries for example, and then edit them, all the items you rena

Software visualisation tool

2009-10-28 Thread MacProjects
Hello! Pardon for being a bit off-cocoa-topic, but thought this is a good place to ask. Until now my choice for visualising algorithms, structure etc has been pen&paper... time to go digital. I do own some apps like AI, VectorDesigner, xMind that would do the job and have googled up for some

Detecting a network connection

2009-10-28 Thread colors
I am currently use NSHost to determine if I can see a particular domain, before I initiate a lengthly sso to that domain. However, I am finding that depending on the settings of some network DNS servers, this method does not always work. Any suggestions of a better way to confirm a live i

Re: Detecting a network connection

2009-10-28 Thread Dave Carrigan
On Oct 28, 2009, at 7:32 AM, colors wrote: I am currently use NSHost to determine if I can see a particular domain, before I initiate a lengthly sso to that domain. However, I am finding that depending on the settings of some network DNS servers, this method does not always work. Any sug

Re: Software visualisation tool

2009-10-28 Thread I. Savant
On Oct 28, 2009, at 10:20 AM, MacProjects wrote: Pardon for being a bit off-cocoa-topic, but thought this is a good place to ask. You thought a Cocoa development list with strict topic rules was a good place to post questions about which visualization applications are best? Come on.

Re: Detecting a network connection

2009-10-28 Thread colors
That looks perfect, thank you. Rich On Oct 28, 2009, at 7:37 AM, Dave Carrigan wrote: On Oct 28, 2009, at 7:32 AM, colors wrote: I am currently use NSHost to determine if I can see a particular domain, before I initiate a lengthly sso to that domain. However, I am finding that depending

Re: Software visualisation tool

2009-10-28 Thread MacProjects
Which from apple developer maillists in Your opinion would be more appropriate for discussing the "algorithm/structure visualisation stage" when developing on osx? Which list would hold users that are more likely using such tools and can give a good advice based on empirical knowledge? I do

Re: Software visualisation tool

2009-10-28 Thread I. Savant
On Oct 28, 2009, at 11:01 AM, MacProjects wrote: Which from apple developer maillists in Your opinion would be more appropriate for discussing the "algorithm/structure visualisation stage" when developing on osx? Apple mailing lists for this topic? There are none. There's the Apple Deve

Re: Software visualisation tool

2009-10-28 Thread MacProjects
I know, OmniGraffle is praised everywhere. This could be a good investment, unless there is the need for sharing - asking others to buy a software isn't right, especially when working on a freeware project. I will look into xfig, thanks Sarah. I.Savant, taking this discussion down. Sorry AGAI

Re: Adding new Core Data objects through a form

2009-10-28 Thread mmalc Crawford
On Oct 28, 2009, at 6:26 am, Martin Cote wrote: > That said, the situation in this sample project is quite different. > When they add an object, they actually add an empty object in an array > controller. > This is precisely what the example does not do.

Re: [iPhone] Why so many calls?

2009-10-28 Thread Corbin Dunn
On Oct 27, 2009, at 5:22 PM, Phil Curry wrote: >>> But can anyone explain all the other duplicate calls? >> >> Why does it matter? If you have eight or nine sections it makes >> perfect sense. Or you could have one section and it needs to draw >> multiple times, and whoever designed the API di

Re: FSMountServerVolumeSync Authentication problem

2009-10-28 Thread Sean McBride
On 10/26/09 9:34 PM, Sandro Noël said: >I'm having some problems with FSMountServerVolumeSync Since that's a Carbon function, maybe the carbon-dev list would be more appropriate (and yield you better answers). -- Sean McBride, B. Eng

Re: Adding new Core Data objects through a form

2009-10-28 Thread Martin Cote
On Wed, Oct 28, 2009 at 12:01 PM, mmalc Crawford wrote: > On Oct 28, 2009, at 6:26 am, Martin Cote wrote: > >> That said, the situation in this sample project is quite different. >> When they add an object, they actually add an empty object in an array >> controller. >> > This is precisely what th

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

2009-10-28 Thread Sean McBride
On 10/28/09 10:48 AM, Daniel Kennett said: >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 sta

Re: Detecting a network connection

2009-10-28 Thread colors
Is there an API for determining a physical network connection (ethernet, WiFi, etc.)? On Oct 28, 2009, at 7:37 AM, Dave Carrigan wrote: On Oct 28, 2009, at 7:32 AM, colors wrote: I am currently use NSHost to determine if I can see a particular domain, before I initiate a lengthly sso to t

Programmatically invoking double-click bindings on NSTableView

2009-10-28 Thread Gerd Knops
Seems this should be easy: I have an NSTableView's "Double Click Target", "Double Click Argument", "Double Click Argument2" etc. binding set, and they work fine. Now I would like to programmatically get the tableview to issue a double-click response. Obviously "target" and "doubleAction"

Re: Programmatically invoking double-click bindings on NSTableView

2009-10-28 Thread Jim Correia
On Wed, Oct 28, 2009 at 12:25 PM, Gerd Knops wrote: > Seems this should be easy: > > I have an NSTableView's "Double Click Target", "Double Click Argument", >  "Double Click Argument2" etc. binding set, and they work fine. > > Now I would like to programmatically get the tableview to issue a > dou

Re: Detecting a network connection

2009-10-28 Thread Jens Alfke
On Oct 28, 2009, at 9:22 AM, colors wrote: Is there an API for determining a physical network connection (ethernet, WiFi, etc.)? Again, SystemConfiguration has APIs for that. But unless you're doing something unusual, you probably don't need to check for physical network interfaces. An a

Re: Odd window behavior LSUIElement=1

2009-10-28 Thread Jens Alfke
On Oct 28, 2009, at 5:37 AM, Matthew Lindfield Seager wrote: If that is the case it would seem to imply that when A quits the system looks for the "next" app. In this case "next" seems to be determined in the same way command-tab chooses the "next" app. Yup. This is basically the expected beh

Re: Single Static Library for iPhone and Desktop applications

2009-10-28 Thread Karolis Ramanauskas
Thanks to you both, I'll look into my options more deeply. Sorry about the wrong list... ___ 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-admi

Re: waiting for async callback in main thread

2009-10-28 Thread Jens Alfke
On Oct 27, 2009, at 11:13 PM, John Engelhart wrote: While Cocoa might do this, there's probably a few "important details" that you're glossing over. Using a different run loop mode for the the recursive run of the loop is a good example. I'd be willing to bet there's an implicit assumptio

A distinct group of pictures in the bundle

2009-10-28 Thread Pierre Berloquin
Hi My app uses a hundred pictures. How can I group them somewhere in the bundle so that my app loads them without confusing them with button images and icons . Thanks ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

Re: Programmatically invoking double-click bindings on NSTableView

2009-10-28 Thread Gerd Knops
On Oct 28, 2009, at 11:41 AM, Jim Correia wrote: If you are looking for a more general solution, you can retrieve the binding data from the table view using -infoForBinding:, valuate the target & arguments, and invoke the method that way. I could, but given the flexible number of arguments tha

Re: A distinct group of pictures in the bundle

2009-10-28 Thread Dave Carrigan
On Oct 28, 2009, at 10:46 AM, Pierre Berloquin wrote: My app uses a hundred pictures. How can I group them somewhere in the bundle so that my app loads them without confusing them with button images and icons . Have you tried NSBundle's -pathForResource:ofType:inDirectory: To install them, c

Re: Programmatically invoking double-click bindings on NSTableView

2009-10-28 Thread Jim Correia
On Oct 28, 2009, at 1:51 PM, Gerd Knops wrote: On Oct 28, 2009, at 11:41 AM, Jim Correia wrote: If you are looking for a more general solution, you can retrieve the binding data from the table view using -infoForBinding:, valuate the target & arguments, and invoke the method that way. I cou

Re: Bold and Italic For Dictionary Font Attributes (Hillegass Chapter 20, Challenge 2)

2009-10-28 Thread Russell Finn
On Tue, Oct 27, 2009 at 3:39 PM, Jens Alfke wrote: > > On Oct 27, 2009, at 4:59 AM, Chunk 1978 wrote: > >> attributes = [[NSMutableDictionary alloc] init]; >> >> [attributes setObject:[NSFont fontWithName:@"Helvetica" size:75] forKey: >> NSFontAttributeName]; >> >> [attributes setObject:[NSColor r

Re: Multithreading NSBezierPath creation and stroking. Measuring performance

2009-10-28 Thread Sean McBride
On 10/27/09 2:05 AM, Karolis Ramanauskas said: >At this point I started optimizing drawing, so I implemented some cacheing, >etc. and I see significant performance gains. Now my attention is on drawing >multiple series as can be seen in the picture above. I decided that this is >a great place to i

Re: Cocoa-dev Digest, Vol 6, Issue 1550

2009-10-28 Thread Dalmazio Brisinda
On 2009-10-28, at 8:17 AM, cocoa-dev-requ...@lists.apple.com wrote: On 28/10/2009, at 4:49 PM, Peter N Lewis wrote: a) composite two images, preferably while keeping the different resolutions of the icon b) how to dim an image similarly to kTransformDisabled I'm unclear what you mean by a),

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

2009-10-28 Thread Grant Erickson
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: - (void) resizeView { NSRect viewFrame, windowFrame;

[moderator] Re: Software visualisation tool

2009-10-28 Thread Scott Anguish
I.S. is not responsible for determining which lists are valid and which aren’t. The moderator is. That’s me It’s off topic (as you say) and as a result, not for here. Where? I don’t know. But not here. scott [moderator] On Oct 28, 2009, at 11:01 AM, MacProjects wrote: > Which from apple dev

Re: Bold and Italic For Dictionary Font Attributes (Hillegass Chapter 20, Challenge 2)

2009-10-28 Thread Graham Cox
On 29/10/2009, at 7:02 AM, Russell Finn wrote: I'm pretty sure you got this backwards -- it's ObjectsAndKeys, not KeysAndObjects: attributes = [[NSMutableDictionary alloc] initWithObjectsAndKeys: [NSFont fontWithName:@"Helvetica" size:75], NSFontAttributeName, NSColor redColor]

Re: A distinct group of pictures in the bundle

2009-10-28 Thread Pierre Berloquin
I do use pathForResource:ofType:inDirectory: with nil for Directory and jpg for Type It helps separate jpg's from other pictures But suppose I want to have my pictures in a directory called Pic, how do I go about it? Thanks Dave Pierre 2009/10/28 Dave Carrigan > > On Oct 28, 2009, at 10:46 AM,

Re: waiting for async callback in main thread

2009-10-28 Thread John Engelhart
On Wed, Oct 28, 2009 at 7:08 AM, Dave Keck wrote: > > I've hit several other brick walls from recursive run loops, but they > escape me at the moment. Nonetheless, recursive run loops are a fancy > way of blocking, and are contrary to the event-driven model that we > know and love. > > I guess th

Re: A distinct group of pictures in the bundle

2009-10-28 Thread Ron Fleckner
When you add your folder of jpgs to your project, be sure to set "Create folder references for any added folders" to true. Also don't forget to check the checkbox with "Copy items into destination group's folder, if needed." Then you can do, for example: NSString *bellSoundPath = [[NSBun