Re: Correct way to overide synthesized setter?

2010-02-28 Thread Chris Tracewell
On Feb 28, 2010, at 9:28 AM, Jean-Daniel Dupas wrote: Le 28 févr. 2010 à 17:23, Chris Tracewell a écrit : I have two synthesized properties - A and B. Whenever A changes I need B to be updated to A.keypath. Is the correct way to do this to override the synthesized setter of A like so

Re: Correct way to overide synthesized setter?

2010-02-28 Thread Chris Tracewell
On Feb 28, 2010, at 9:26 AM, Jens Alfke wrote: On Feb 28, 2010, at 8:23 AM, Chris Tracewell wrote: I have two synthesized properties - A and B. Whenever A changes I need B to be updated to A.keypath. If B's value is entirely dependent upon A, you don't even need to synthesize it — you

Re: Where in the MVC should my code go?

2010-02-28 Thread Chris Hanson
to represent the host, port, directory, protocol, etc. I’d use some other (fully mutable) model object that can return itself as a URL. My UI would be bound to that other model object, and only when I need a full URL would I ask that other model object for an equivalent NSURL instance. — Chris

Re: Looking for info on anti-piracy and trial-mode techniques for my app . . .

2010-02-24 Thread Chris Williams
This can be quite a religious argument, but speaking from experience of code that's been rigorously hacked time and again, the only effective way to disable parts of your code is to not have that code in the executable. E.G. a compile a demo version, and a real licensed version. Having code

NSPredicate Binding Problem

2010-02-16 Thread Chris Tracewell
In a window displaying a widget object I am using an outlineview bound to an NSTreeController as master view. When I notice the OV selection change via outlineViewSelectionDidChange I filter a tableview bound to an NSArrayController in one of two ways like so... Method 1 :: use

Re: Validating unique objects in CoreData

2010-02-14 Thread Chris Hanson
and return an error. Obtaining permanent IDs for objects requires a transaction, because in non-atomic persistent stores (e.g. the SQLite persistent store) you may have multiple requests happening at a single time against the same store. — Chris

Re: Validating unique objects in CoreData

2010-02-14 Thread Chris Hanson
would have is to try splitting them off into their own entity, and measure performance of performing queries directly against that entity. — Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Using NSKeyedArchiver to save and restore state on iPhone apps

2010-02-10 Thread Chris Hanson
classes that don’t support NSCoding at all that can be referenced by a nib file, such as Cocoa’s NSWindow class. That’s why you don’t load nib files using NSKeyedUnarchiver, but instead by using one of the methods on NSBundle (or for Cocoa, NSNib). — Chris

SetFrontProcessWithOptions and NSPanel

2010-01-31 Thread Chris Idou
I've got a NSPanel HUD that I need to be able to pop up above other applications, but I need to pop only the HUD, and not other windows in my application. So naturally I'm using: SetFrontProcessWithOptions(psn, kSetFrontProcessFrontWindowOnly); However, it still pops up all my windows, and

FSEventStreamCreate and File System Events Wierdness

2010-01-29 Thread Chris Idou
I'm trying to use the file system events api, but what I'm seeing seems wierd. Firstly, the documentation as I read it says you can store the last event id, and pass that to FSEventStreamCreate next time to carry on where you left off. However what I'm seeing if I do that, is it immediately

Re: FSEventStreamCreate and File System Events Wierdness

2010-01-29 Thread Chris Idou
@bigpond.com To: Chris Idou idou...@yahoo.com Cc: cocoa-dev@lists.apple.com Sent: Fri, 29 January, 2010 11:27:31 PM Subject: Re: FSEventStreamCreate and File System Events Wierdness Well, I have no experience of this API, but perhaps it's designed to do this so that when you restart a stream, you

Re: FSEventStreamCreate and File System Events Wierdness

2010-01-29 Thread Chris Idou
No, I'm not using FSEventStreamCreateRelativeToDevice, I'm using FSEventStreamCreate. What you quote is only relevant to FSEventStreamCreateRelativeToDevice. From: Graham Cox graham@bigpond.com To: Chris Idou idou...@yahoo.com Cc: cocoa-dev

Re: Make sheets open instantly

2010-01-18 Thread Chris Hanson
On Jan 18, 2010, at 2:43 PM, David Catmull wrote: Is there any way to make sheets open instantly, instead of animating? I'd just like to speed up my unit tests. Why do your unit tests need to bring up sheets? — Chris ___ Cocoa-dev mailing list

Re: Confused about setting selection in NSBrowser

2010-01-16 Thread Chris Idou
Yes, I'm doing 10.6. But I don't see anything about item based in NSBrowser.h, nor anything else that looks enlightening. From: Corbin Dunn corb...@apple.com To: Keary Suska cocoa-...@esoteritech.com Cc: Chris Idou idou...@yahoo.com; cocoa-dev

Confused about setting selection in NSBrowser

2010-01-14 Thread Chris Idou
I'm trying to set the selected item in an NSBrowser. I don't want to use setPath: because the items I'm storing in the browser are not unique, so therefore paths are not unique. I'm trying to use setIndexPath: but when I try the program throws an exception: HIToolbox: ignoring exception

Re: Time to drop PowerPC support?

2010-01-14 Thread Chris Idou
Another factor to consider is that you will need to maintain PowerPC hardware to test on. --Kyle Sluder I had a 50,000 line Cocoa program, and I thought about restricting it to Intel for that reason, but then I thought heck, I'll build it universal and throw it out there. Not a single bug

Re: if statement causing 32 Byte leak?

2010-01-10 Thread Chris Parker
help filter down the noise to only those objects of the class which are causing you problems. .chris -- Chris Parker iPhone Frameworks Apple Inc. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: iPhone: validate a NSString for US zipcode

2010-01-07 Thread Chris Williams
As someone who lives in a zip code that was added in 2004, yet STILL shows up as invalid in countless databases, I can't stress this point enough. Do not maintain data yourself that someone else has a reason/motivation and the resources to maintain. Just send it to the service, and catch the

Re: NSDate without time portion

2010-01-05 Thread Chris Ridd
models dates using NSDate. If you needed to model dates without times in Core Data (and be able to sort/filter on them) what would you do? Cheers, Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: NSDate without time portion

2010-01-05 Thread Chris Ridd
On 5 Jan 2010, at 20:56, Sean McBride wrote: On 1/5/10 7:23 PM, Chris Ridd said: However Core Data models dates using NSDate. If you needed to model dates without times in Core Data (and be able to sort/filter on them) what would you do? Core Data has the concept of a 'transformable

Re: Need font anti aliasing techniques

2010-01-04 Thread Chris Hanson
using NSTextField should achieve appropriate antialiasing. — Chris ___ 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

Re: GC memory leak - what is it?

2010-01-04 Thread Chris Hanson
these if they want their classes to work under GC. — Chris ___ 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

Re: NSRecursiveLock problems

2009-12-22 Thread Chris Backas
with an alternative way to architect this - we had to do all our string measuring on the main thread. (We were actually getting occasional crashes from doing this on a secondary thread, maybe once every 30K strings or so) Hope that helps some, Chris Backas On Dec 22, 2009, at 1:49 PM, PCWiz wrote

NSAttributedString fill with gradient

2009-12-17 Thread Chris Purcell
I've tried setting the gradient as NSForegroundColorAttributeName in the attributes dictionary when creating the string but as I expected that didn't work. How would I go about filling the string with a gradient? Thanks! --Chris ___ Cocoa-dev

NSSpellChecker language guessing doesn't work

2009-12-14 Thread Chris Idou
I'm trying to use guessesForWordRange:inString:language:inSpellDocumentWithTag: and have it use automatic language guessing, but it doesn't seem to work. At first I was just passing a word, and despite it being in Russian letters, I figured it didn't have enough context to guess. So I passed

Re: NSUserDefaults Croaks on Dictionary Containing NSNumber as Key

2009-12-12 Thread Chris Parker
better somehow? Another bug for the error not being useful would be great. You're not the first person to trip over this. Thanks! .chris On 11 Dec 2009, at 11:10 PM, Jerry Krinock wrote: Sorry for the wonky subject. It's easier to explain in code: NSNumber* innerKey = [NSNumber numberWithInt:0

Re: Core Data Conundrum

2009-12-12 Thread Chris Hanson
allSegments as a fetched property, leaving its implementation up to Core Data. It still wouldn’t be a property you could use in your own fetch requests though. — Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Is it possible to pass an object to a NIB

2009-12-05 Thread Chris Hanson
should use an IBOutlet in File’s Owner to refer to your view, rather than look through the array of top-level objects trying to find it. The latter is simply not how things are typically done in Cocoa. — Chris ___ Cocoa-dev mailing list (Cocoa-dev

Re: Is it possible to pass an object to a NIB

2009-12-04 Thread Chris Hanson
is instantiate your window controller, invoke its -window method to force it to load its associated nib file, and then check that its outlets are wired up as you expect. — Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Download Alert -- Quarantine information removal

2009-12-02 Thread Chris Hanson
You shouldn't need to write an installer in the first place. Mac OS X comes with its own standard installation system. If your application is simple, it should be drag-installed; otherwise, it should use a Mac OS X installer package. -- Chris On Dec 1, 2009, at 7:55 AM, Sravana Kumar

Re: Use of preprocessor macros

2009-12-02 Thread Chris Hanson
. You can tell a setting is overridden because it's in bold rather than plain text. -- Chris On Dec 1, 2009, at 5:35 PM, Graham Cox graham@bigpond.com wrote: I'd set this in the (Project) Get Info Build settings, not (Target) Get Info Build settings. Putting it in the target

Re: Apple MVC and Document Based application confusion.

2009-11-29 Thread Chris Hanson
On Nov 29, 2009, at 5:47 PM, Sandro Noël sandro.n...@gestosoft.com wrote: I have to agree with you here, NSDocument should be just M in the MVC Pattern, but why is XCode evidently binding it as the C also in the template project. Because not every project needs to be picture perfect in

Re: Apache Module

2009-11-27 Thread Chris Hanson
this kind of use: Maintaining a pool of CGI-style servers that use Apache to provide an HTTP front-end without the overhead of one fork/exec per HTTP connection. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

core data and migration

2009-11-22 Thread Chris Idou
If I have versions of my model, A, B and C, do I only need a mapping model from A-B and B-C, and if someone wants to upgrade A-C is core data smart enough to do the two migrations, or do I need a separate mapping model from A-C ?

Re: tiffs on pasteboard

2009-11-20 Thread Chris Idou
I thought the solution to big files was to use pasteboard promises... not to setup a pasteboard which is conflicted about what item it is trying to store. At least that's what I find documented by Apple. From: Alexander Spohr a...@freeport.de To: Chris

Re: asl_log aborts the program?

2009-11-20 Thread Chris Idou
I just noticed something I didn't see before, namely that the doco says to call asl_open once for each thread, which I'm not doing. I guess this most likely is the cause. From: Jeremy Pereira a...@jeremyp.net To: Chris Idou idou...@yahoo.com; Cocoa Forum

Re: tiffs on pasteboard

2009-11-20 Thread Chris Idou
20, 2009, at 1:35 AM, Chris Idou wrote: I thought the solution to big files was to use pasteboard promises... not to setup a pasteboard which is conflicted about what item it is trying to store. At least that's what I find documented by Apple. You're correct that promises would overcome some

Advice about crash requested

2009-11-19 Thread Chris Idou
I've got a user getting the following crash, and I don't know what to make of it because it all happens in Apple code. Has anyone got any advice? Process: XXX [242] Path:/Applications/XXX.app/Contents/MacOS/XXX Identifier: XXX Version: 1.19

tiffs on pasteboard

2009-11-19 Thread Chris Idou
I'm trying to read a TIFF off the pasteboard, but it doesn't seem to work for me. What I'm doing is going into Finder, finding a TIFF file and Command-C it. Among other types I then find on the pasteboard are: NeXT TIFF v4.0 pasteboard type and public.tiff If I take either of those from the

Re: Advice about crash requested

2009-11-19 Thread Chris Idou
Mainly stuff to do with examining files, and on the odd occasion it needs to do anything in the GUI it executes it on the main thread. From: David Duncan david.dun...@apple.com To: Chris Idou idou...@yahoo.com Cc: cocoa-dev@lists.apple.com Sent: Fri, 20

Re: tiffs on pasteboard

2009-11-19 Thread Chris Idou
I notice that at least com.apple.icns works when I copy it from Preview, but it doesn't work when just copying from Finder. But either way TextEdit seems to be able to get the right thing if I paste into it. From: Chris Idou idou...@yahoo.com To: Kyle

Re: Advice about crash requested

2009-11-19 Thread Chris Idou
This will help if I'm ever able to repeat it. Right now its just a user report and I can't repeat it. From: Sean McBride s...@rogue-research.com To: Jens Alfke j...@mooseyard.com; Chris Idou idou...@yahoo.com Cc: cocoa-dev@lists.apple.com Sent: Fri, 20

Re: tiffs on pasteboard

2009-11-19 Thread Chris Idou
? From: Jens Alfke j...@mooseyard.com To: Chris Idou idou...@yahoo.com Cc: Kyle Sluder kyle.slu...@gmail.com; cocoa-dev@lists.apple.com Sent: Fri, 20 November, 2009 12:29:51 PM Subject: Re: tiffs on pasteboard On Nov 19, 2009, at 5:24 PM, Chris Idou wrote: But I'm still confused about one thing

asl_log aborts the program?

2009-11-19 Thread Chris Idou
I've got a report from a user of my program crashing. In the console they are getting this: 11/19/09 3:08:46 PM[0x0-0x18a18a]Progname[8699]Progname(8699,0x1167b) malloc: *** error for object 0x100563870: pointer being freed was not allocated 11/19/09 3:08:46 PM[0x0-0x18a18a]

Performance

2009-11-15 Thread Chris Carson
and if the USB stuff isn't strictly Cocoa related, but since it's so intertwined with Cocoa classes, I figured this was the best place to ask. Advice is much appreciated. Please CC me on replies. Chris ___ Cocoa-dev mailing list (Cocoa-dev

Re: Should I learn CoreData for this project?

2009-11-10 Thread Chris Hanson
: Use a separate NSManagedObjectContext per thread. If you follow this recommendation, instead of attempting to share objects from a single context between multiple threads, then there should be no problems using Core Data multithreaded. — Chris

Re: Hardware UUID

2009-11-09 Thread Chris Parker
Please remember that gethostuuid() has all the same caveats mentioned in TN1103. .chris On 8 Nov 2009, at 3:13 PM, Grigutis, John A wrote: Also look at gethostuuid: int gethostuuid(uuid_t id, const struct timespec *wait) I don't think it was around when that technote was last updated

NSOperationQueue for NSXMLParser object

2009-11-05 Thread Chris Purcell
Let me start with what I'm trying to accomplish. I have an app that is constantly running an animation, which's attributes are determined after downloading and parsing some XML. The XML is parsed at a given interval using an NSTimer. As expected, sometimes when the XML is being parsed

Re: why use pow(x, 2)?

2009-11-02 Thread Chris Williams
How completely rude of you, Greg, to confuse a good argument with facts :) But it still does leave the style question: is pow(x,2) clearer than x*x? In the case from the OP, I think that the pow is clearer, because it is implementing an algorithm that calls specifically for x-squared. And in

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

Odd window behavior LSUIElement=1

2009-10-27 Thread Chris Idou
I have an app running without dock icon, and it exhibits odd behavior. 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,

Re: SelectedRowIndexes

2009-10-15 Thread Chris Williams
/options/cocoa-dev/chris%40clwill.com This email sent to ch...@clwill.com ___ 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

Re: Appropriate dealloc and finalize actions

2009-10-13 Thread Chris Hanson
referencing node A from node B” distinct from “remove node A from the document.” The latter may imply the former, but the former generally doesn’t imply the latter. — Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Snow Leopard: unsupported PointerFunctions configuration was requested

2009-10-10 Thread Chris Idou
] disableCollectorForPointer:RKCacheIntegerKeyPointerFunctions]; [[garbageCollector defaultCollector] disableCollectorForPointer:RKCacheObjectValuePointerFunctions]; } } #endif // ENABLE_MACOSX_GARBAGE_COLLECTION } } From: Bill Bumgarner b...@mac.com To: Chris Idou idou...@yahoo.com Cc: cocoa-dev

Re: real verses Virtual memory

2009-10-10 Thread Chris Ridd
process to sleep 20 seconds and then repeat - instead of exiting and getting restarted - how does that change the disk activity? Cheers, Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Fw: Snow Leopard: unsupported PointerFunctions configuration was requested

2009-10-10 Thread Chris Idou
] disableCollectorForPointer:RKCacheIntegerKeyPointerFunctions]; [[garbageCollector defaultCollector] disableCollectorForPointer:RKCacheObjectValuePointerFunctions]; } } #endif // ENABLE_MACOSX_GARBAGE_COLLECTION } } From: Bill Bumgarner b...@mac.com To: Chris Idou idou...@yahoo.com Cc: cocoa-dev

Re: whether to use core data...

2009-10-04 Thread Chris Hanson
Mac OS X and iPhone OS. It is by no means a toy. That you don’t currently think it meets your (unarticulated) needs does not make it one. — Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

NSDocumentController didCloseAllSelector

2009-09-30 Thread Chris Idou
The doco for closeAllDocumentsWithDelegate:didCloseAllSelector:contextInfo: says that it should call the didCloseAllSelector. How would one do that? This is what I am doing: [delegate performSelector:didCloseAllSelector withObject:(id)YES withObject:contextInfo]; but I'm nervous about that

Re: NSWindowController and GC

2009-09-30 Thread Chris Idou
The right way is to make sure something in your program retains a pointer to your window controller. Sometimes there will be an obvious place, like a member of the object that created the window controller. That is most typical. Worst case is you retain a pointer in some global variable or

Re: Best Design Advice

2009-09-30 Thread Chris Idou
If it displays a window it should be an app. If its an app it should be in /Applications and it should be started from Login Items. You can't install it automatically by security design. But once you get the user to install and run it, there are no permissions issues in adding it to login

Re: NSDocumentController didCloseAllSelector

2009-09-30 Thread Chris Idou
@bigpond.com To: Chris Idou idou...@yahoo.com Cc: cocoa-dev@lists.apple.com Sent: Thursday, 1 October, 2009 11:42:05 AM Subject: Re: NSDocumentController didCloseAllSelector On 01/10/2009, at 11:00 AM, Chris Idou wrote: The doco

Snow Leopard, core data, read only and multiple threads

2009-09-27 Thread Chris Idou
I've got an app that worked on Leopard. I ported it to Snow Leopard SDK 10.6, and now it works on Snow Leopard, but it doesn't work correctly on Leopard anymore. I haven't changed anything that ought to affect this. It's an app with a foreground gui that writes an XML coredata store. A

building and running on Snow Leopard

2009-09-23 Thread Chris Idou
If you build an application on Snow Leopard, but against the 10.5 deployment target, and then you run the program on Snow Leopard, do you get all the Leopard 10.5 bugs as if you ran it on Leopard, or do you get to benefit from Snow Leopard bug fixes only if you build against the 10.6

Re: building and running on Snow Leopard

2009-09-23 Thread Chris Idou
? From: Ken Thomases k...@codeweavers.com To: Chris Idou idou...@yahoo.com Cc: cocoa-dev@lists.apple.com Sent: Wednesday, 23 September, 2009 5:37:01 PM Subject: Re: building and running on Snow Leopard On Sep 23, 2009, at 2:20 AM, Chris Idou wrote: If you build

Re: building and running on Snow Leopard

2009-09-23 Thread Chris Idou
From: Ken Thomases k...@codeweavers.com Don't test whether you're running on Leopard. Just write your code to cope with either behavior of the framework. Read the release notes for the frameworks on which you rely for more guidance. I think when you see

Re: NSManagedObject Initialization Methods Not Called

2009-09-23 Thread Chris Hanson
fetched via a fetch request or relationship traversal. Hope this clears things up a little. — Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Snow Leopard: unsupported PointerFunctions configuration was requested

2009-09-23 Thread Chris Idou
I'm porting an app to Snow Leopard. Very early in application startup, even before main() is called, I get the following error: 2009-09-24 12:07:11.462 MyApp[5534:a0f] *** An unsupported PointerFunctions configuration was requested, probably for use by NSMapTable, NSHashTable, or

Re: Controlling Spaces and retrieving information about the current Space?

2009-09-23 Thread Chris Idou
Secondly, is there any way in any of those environments to programmatically switch Spaces? [ ... ] No, there is no API (in Cocoa or otherwise) to control the active space. But how does Spaces do it? Is it via an internal, private API that people like us don't have access to? There may not

Re: Static Analyzer and Core Foundation

2009-09-18 Thread Chris Parker
the MDItemCopyAttributeNames() call, which (because it has Copy in the name) returns an object you'd have to release. I.e., line 44 allocates two objects, the dictionary which you *are* releasing and the attribute names array, which you're not. .chris -- Chris Parker Apple Inc

Re: #pragma to suppress a warning message

2009-09-17 Thread Chris Hanson
OS X and iPhone OS. You do not need to use the SDK specific to an operating system just because that is the minimum operating system your application will support. — Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Grand Central Dispatch vs CFRunLoop

2009-09-16 Thread Chris Kane
, if you are also using NSFileHandle in-background operations, then you will need the run loop run (on the thread(s) which start those background reads) to get those notifications. That's a separate matter from NSTask, but people may confuse the two together so I mention it here. Chris

Re: Is a serial NSOperationQueue FIFO?

2009-09-16 Thread Chris Kane
that can affect readiness. If you are adding NSOperations to a given queue from multiple threads, keep in mind that it is very tricky (well, impossible) to accurately observe from the outside the actual order of events (ie, who got in first). Chris Kane Cocoa Frameworks, Apple

Re: Need -[NSTask waitUntilExitOrTimeout:] (was NSTask Thread Unsafe...)

2009-09-16 Thread Chris Kane
or requirements it has), and possibly surprising to your app (breaking assumptions or requirements it has). However in this case, the task death notification, if you need that, requires the default run loop mode to be run to get delivered. Chris Kane Cocoa Frameworks, Apple

Re: testing ppc on intel

2009-09-14 Thread Chris Idou
Guerin glgue...@amug.org To: list-cocoa-dev cocoa-dev@lists.apple.com Sent: Monday, 14 September, 2009 5:33:48 PM Subject: Re: testing ppc on intel Chris Idou wrote: Every program that I build universal but run on intel (OS 10.5) with arch -ppc option, crashes with a report like the following

testing ppc on intel

2009-09-13 Thread Chris Idou
Every program that I build universal but run on intel (OS 10.5) with arch -ppc option, crashes with a report like the following, and I've tested quite a few, even simple ones. Is it unreasonable to try to test ppc programs on intel, or am I doing something wrong, or what? Version:

usb notification

2009-09-08 Thread Chris Carson
; } @end static void AppearedNotificationHandler (void * refCon, io_iterator_t iterator) { NSLog(@AppearedNotificationHandler); } Any help is much appreciated. Thanks, Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: usb notification

2009-09-08 Thread Chris Carson
). - (id) init { [super init]; if (self) { This is not the correct initializer pattern. You need to assign to self here. --Kyle Sluder Changed this to self = [super init]; However, the issue still persists. Chris

Re: Code Signing

2009-09-06 Thread Chris Suter
is the apple-cdsa list. Kind regards, Chris ___ 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

Re: What about revamping OpenUp.app for Snow Leopard?

2009-09-04 Thread Chris Hanson
, usability, and accessibility. Download ZipBrowser 1.1 here: http://developer.apple.com/mac/library/samplecode/ZipBrowser/index.html You can also search for ZipBrowser in the Snow Leopard documentation, and download open the project right within Xcode. — Chris

Re: system(root) locale

2009-08-31 Thread Chris Kane
[NSLocale systemLocale] returns the root NSLocale. If you are referring to the BSD/Unix-level locale, you can start by looking in /usr/include/xlocale.h, but I don't know anything else about that. Chris Kane Cocoa Frameworks, Apple On Aug 31, 2009, at 12:53 AM, Maggie Zhang wrote: Hi

Testing 32/64 bit and/or PPC

2009-08-28 Thread Chris Idou
If you have a universal binary, 32/64 and/or PPC, is there a way to force it to run one way or the other for testing purposes? __ Find local businesses and services in your area with Yahoo!7 Local. Get

Confusion about custom UITableViewCell

2009-08-23 Thread Chris Idou
I'm trying to make a custom UITableViewCell, but the way I'm doing it, all the drawing of the table seems to be screwed up. The view seems to be working in some sense, because I can see the data, but only one row at the bottom can be seen and things are generally screwed up when scrolling. This

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

2009-08-18 Thread Chris Paveglio
(to the user) fails? Thanks, Chris ___ 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

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

2009-08-18 Thread Chris Paveglio
making a public application I know would have to handle other formats, and all sorts of user gaffes. Thanks, Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Looking for Lead Engineer, iPhone Applications

2009-08-11 Thread Chris Frost
Lead Engineer, iPhone Applications Standard Nine Inc. San Francisco, CA We're a small startup looking to augment our founding team with passionate, talented engineers who will help us build the world's first end-to-end platform for digital learning content distribution. Our founding team is

Re: NSUserDefault and Negative numerical arguments (Was: Posting mouse clicks with multiple displays)

2009-08-11 Thread Chris Parker
() function, before calling NSApplicationMain(), or you can use NSProcessInfo to examine them once your app is running. You can always do this if you know a particular key hasn't been handled the way you expect via NSUserDefaults. .chris -- Chris Parker iPhone (formerly Cocoa) Frameworks Apple

Forcing a cell's field editor to send control:textShouldEndEditing: when leaving a cell

2009-08-11 Thread Chris Arnaiz
Hi, I've been struggling to control the behavior of a NSTableView while editing cells. The table is a simple ID number / description list. Editing an existing entry is okay, but my problem is dealing with new entries. My goal is to prevent the user from leaving a cell (mouse click, tab

RE: Forcing a cell's field editor to send control:textShouldEndEditing: when leaving a cell

2009-08-11 Thread Chris Arnaiz
to the list) If all else fails, I suppose I can just omit the blank entries when saving. The other illegal entries will either be prevented by the formatter or the user will be forced to deal with at the time of entry. -Chris -Original Message- From: Alastair Houghton [mailto:alast...@alastairs

Re: NSOperationQueue question

2009-08-07 Thread Chris Hanson
asynchronously, rather than only when the autorelease pool is drained. — Chris On Aug 7, 2009, at 2:06 PM, Tim Murison wrote: #import Cocoa/Cocoa.h #include libkern/OSAtomic.h volatile int64_t globalCounter; @interface Operation : NSOperation + (Operation*) operation; @end @implementation

Re: adding a sub menu to multiple super menus?

2009-08-07 Thread Chris Hanson
structure you want (including sharing of submenus) and use them to construct appropriate Cocoa or Windows menu objects on the target platform. — Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

iCal Notifications

2009-08-06 Thread Chris Purcell
/server/macosx/features/images/ical_notifications20090608.jpg Thanks! --Chris ___ 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

Cookies Problems

2009-08-02 Thread Chris
Hello I am trying to write a test program that will send a value through a web form, get the cookie information and then relay that cookie information back to the sever. I have setup 3 php pages, which work correctly. The first page displays a web form with one field named name. The

Re: Core Data App With Auxiliary Panel

2009-08-01 Thread Chris Hanson
The below is incorrect. Key-Value Coding (and therefore Key-Value Observing and bindings) will always use a method if one is present. -- Chris On Jul 31, 2009, at 8:33 PM, Kyle Sluder kyle.slu...@gmail.com wrote: Because you have a managedObjectContext ivar, you never change its value so

Re: Loading GC test bundles

2009-07-18 Thread Chris Hanson
environment variable set to disable GC when not. -- Chris On Jul 18, 2009, at 8:18 AM, Martin Pilkington pi...@mcubedsw.com wrote: Hi, I'm the developer of a GUI for OCUnit called OCRunner. I'm having an issue with loading test bundles that use GC into the app. It brings up

Re: NSError in NSDocument readFromURL

2009-07-15 Thread Chris Miner
Am 13.07.2009 um 00:50 schrieb Konrad Windszus: If I set an NSError in the method readFromURL of my NSDocument, I am not able to overwrite the NSLocalizedDescriptionKey. If have the following code in that method: I guess for the desired (expected?) effect the code should look like: -

Re: Cocoa Frontend to SDL App

2009-07-11 Thread Chris Ridd
faked up somehow it might be close to what you want. Cheers, Chris ___ 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

CFBundleTypeName

2009-07-09 Thread Chris Idou
http://devworld.apple.com/ReleaseNotes/Cocoa/AppKit.html Use of these keys becomes optional: CFBundleTypeName http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/PListKeys.html This key is required What is the truth? I'm trying to create a document by passing a

Re: Clarification on accessors? (was: Yet another memory management question)

2009-07-08 Thread Chris Parker
Because you have no idea what subclassers may do in their overrides of the accessors (e.g. The subclassed accessor may rely on state that's been torn down earlier in -dealloc). It's just not safe, unless you can guarantee that you own the entire inheritance chain. .chris On Jul 8, 2009

Re: CoreData deleteAll of kind

2009-07-06 Thread Chris Hanson
instance of the entity and delete them one at a time. -- Chris ___ 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

Re: Convenience initialisers

2009-07-05 Thread Chris Hanson
method dispatch is dynamic, even to classes, and is subject to override. -- Chris On Jul 5, 2009, at 10:47 AM, Dimitri Bouniol dimitri...@mac.com wrote: You can't tell 'self' to be allocated. ___ Cocoa-dev mailing list (Cocoa-dev

<    1   2   3   4   5   6   7   8   9   10   >