Re: Stealing settings from Mail.app

2010-05-31 Thread Chris
Thanks, it was the iTools bit I needed. But looks like there is a bug in this code it won't notice me.com and could wrongly think say macdonald.com is mobile me. But thanks, it gives me what I needed. -- Chris On 31/05/2010, at 8:11 PM, Dante Palacios wrote: NSString *GetPassword(NSS

Can't set header on NSURLRequest

2009-06-01 Thread Chris
Hello, I'm having an issue with setting two headers for my NSURLRequest: [theRequest setValue: [NSString stringWithFormat:@"/principals/ __uids__/%@/\r\n",self.userGUID] forHTTPHeaderField:@"Originator"]; [theRequest setValue: [NSString stringWithFormat:@"/principals/ __uids__/%@/\

Calendar Store- iCal Notifications

2009-06-24 Thread Chris
.). 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 your Subscription: http

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 sec

Re: Apple Developer Update

2013-07-25 Thread Chris
ctive. Blogging is a soapbox for anyone with an opinion or need to vent. – Chris On Jul 25, 2013, at 15:56, Vincent Habchi wrote: > Kyle, > >> Following that line of thought, how many of you actually think griping >> on this list is going to accomplish anything other than

NSPredicateEditorRowTemplate

2008-06-24 Thread Chris
I've got a NSPredicateEditor and I'm inheriting from NSPredicateEditorRowTemplate to make a custom template. It implements copyWithZone as the doco seems to imply I should. In Interface builder I have a number of standard row templates, and I've added my custom one at the end by setting the class i

Re: Allocating outlets from NIB file

2008-06-24 Thread Chris
Hi, You should not be allocating either SpriteView or SpriteController if they are referred to in the NIB. (which is the normal case). Instead you go to the File's Owner object in interface builder, and go to the Identity tab, and set the Class to be whatever class contains your loadNib

Re: Seconds since system startup

2008-06-24 Thread Chris
Do a man 3 sysctl in the terminal and look for KERN_BOOTTIME On 24/06/2008, at 10:51 PM, Stefan Hafeneger wrote: Hi, I'm looking for a Cocoa function like GetCurrentEventTime() for Carbon to get the interval since system startup. Any ideas? With best wishes, Stefan_

Re: NSPredicateEditorRowTemplate

2008-06-24 Thread Chris
wrote: On Tue, Jun 24, 2008 at 2:02 AM, Chris <[EMAIL PROTECTED]> wrote: When the user clicks ok, then I call objectValue on the NSPredicateEditor and it calls predicateWithSubpredicates not on object "C", but on object "B", which is always going to be blank, because

Re: NSPredicateEditorRowTemplate

2008-06-24 Thread Chris
ve guessed that one. On 25/06/2008, at 12:52 AM, Jim Turner wrote: On Tue, Jun 24, 2008 at 8:46 AM, Chris <[EMAIL PROTECTED]> wrote: Hi! This is very interesting information. Wish it was in the doco! I have a custom view which wasn't responding to setObjectValue / objectValue. Whe

NSPredicateEditor

2008-06-24 Thread Chris
Let's say I create a NSPredicateEditor and it looks like this: [All] of the following are true: [Name] equals [ ] --- So the user enters say "Fred" and the predicate returned is "Name == Fred". Later on, I reload that predicate in

Re: NSPredicateEditor

2008-06-25 Thread Chris
ND or OR, but not both from the user, even though the machinery seems to know how to display things more complex. On 25/06/2008, at 11:57 PM, Jim Turner wrote: On Wed, Jun 25, 2008 at 1:08 AM, Chris <[EMAIL PROTECTED]> wrote: Let's say I create a NSPredicateEditor a

NSPredicateEditor

2008-06-25 Thread Chris
Consider the following code, any NSPredicateEditor gurus: NSPredicateEditorRowTemplate *tmpTemplate = [[NSPredicateEditorRowTemplate alloc] initWithCompoundTypes: [NSArray arrayWithObjects: [NSNumber numberWithInt: NSNotPredicateType], nil]]; NSPredicate * tmpPredicate =

Re: NSPredicateEditor

2008-06-26 Thread Chris
On Fri, Jun 27, 2008 at 10:09 AM, Peter Ammon <[EMAIL PROTECTED]> wrote: > > On Jun 25, 2008, at 7:27 PM, Chris wrote: > >> >> The net effect is that NSPredicateEditor can't display a predicate like >> >> NOT (foo = "bar") >> >>

NSExpression

2008-06-28 Thread Chris
NSExpression defines this method: + (NSExpression *)expressionForFunction:(NSString *)name arguments: (NSArray *)parameters and the doco provides this example: [NSExpression expressionForFunction:(@selector(random)) arguments:nil]; Isn't that wrong? Can you really pass a selector to a NSSt

Re: NSExpression

2008-06-28 Thread Chris
2:43 AM, Shawn Erickson wrote: On Jun 28, 2008, at 12:13 AM, Chris <[EMAIL PROTECTED]> wrote: NSExpression defines this method: + (NSExpression *)expressionForFunction:(NSString *)name arguments: (NSArray *)parameters and the doco provides this example: [NSExpression expressionForFun

Disabling column selection NSTableView

2008-07-02 Thread Chris
Hi, I've disabled column sorting. When I click on the header it seems to select the entire row. I want to disable this functionality, partly because it is meaningless for my app, and partly because I would like to make doubleclick action on the header do something to the selected row, and sin

NSPredicateEditorRowTemplate

2008-07-04 Thread Chris
I have a custom view in a NSPredicateEditorRowTemplate. It seems like the NSPredicateEditor isn't aware when I change the state of the custom view, because when I ask it for the predicate it just returns the old one without even calling predicateWithSubPredicates on my template. I'm guess

Re: IB3 and custom controls: problem with actions

2008-07-04 Thread Chris
I think I've seen this a few times in IB3. But I fiddled a bit, saved, restarted and then it was working as I expected. I wrote it off to a bug at the time. On 04/07/2008, at 4:19 PM, Vitaly Ovchinnikov wrote: Hello all, I'm porting my project from XCode 2.5 to 3.0 and have a big troubl

NSTableView Issue

2008-11-13 Thread Chris
NSString *identifier = [tableColumn identifier]; return [cookie valueForKey: identifier]; } Thank you, any guidance would be appreciated! --Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator c

Creating a NSHTTPCookie

2009-05-04 Thread Chris
Hello, I'm trying to create a NSHTTPCookie with this code: //dictionary of attributes for the new cookie NSDictionary *newCookieDict = [NSMutableDictionary dictionaryWithObjectsAndKeys:@".example.com", NSHTTPCookieDomain,

Creating a NSHTTPCookie

2009-05-04 Thread Chris
Hello, I'm trying to create a NSHTTPCookie with this code: //dictionary of attributes for the new cookie NSDictionary *newCookieDict = [NSMutableDictionary dictionaryWithObjectsAndKeys:@".example.com", NSHTTPCookieDomain,

Re: Getting key data out of the keychain

2016-01-01 Thread Chris Ridd
> On 1 Jan 2016, at 13:09, Andreas Mayer wrote: > > But I *still* don't know how to get at the key bytes of a SecKeyRef. :P Try asking on the apple-cdsa mailing list. It covers the security frameworks in OS X, including (hence the historical name

Re: Deleting an file that's been NSData memory mapped - safe?

2016-02-14 Thread Chris Ridd
o longer any associated filename. 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

Re: Where are my bytes hiding?

2016-05-05 Thread Chris Ridd
a user file > might be compressed in such a way through normal user actions? You can do it explicitly using /usr/bin/ditto. Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: NSFileWrapper

2016-06-04 Thread Chris Ridd
-pkg” for your package format. Are you sure that’s true? Apps like OmniGraffle have a flat file format *and* a bundle format, both using the .graffle extension. In OmniGraffle Pro's document inspector you can switch between formats. If you have the app or a demo you can investigate its Info.p

Re: "Live" NSFetchRequest?

2016-09-24 Thread Chris Hanson
that to refresh the objects in the context you're using for your human interface. Multi-process coordination is a much harder problem. -- Chris > On Sep 17, 2016, at 2:37 PM, Frank D. Engel, Jr. wrote: > > Before I go reinventing the wheel to try to code around this... > &g

Re: SecStaticCodeCheckValidity fails when app is lauched from Terminal

2016-09-27 Thread Chris Hanson
How are you getting the URL that you pass to represent your application? Could it be that you’re constructing the URL from a relative path when run from the command line, rather than the full path? (You can’t depend on being run from any particular working directory.) -- Chris > On Sep

Re: SecStaticCodeCheckValidity fails when app is lauched from Terminal

2016-09-27 Thread Chris Hanson
On Sep 27, 2016, at 1:54 PM, Markus Spoettl wrote: > > On 27/09/16 22:39, Chris Hanson wrote: >> How are you getting the URL that you pass to represent your application? >> >> Could it be that you’re constructing the URL from a relative path when run >> from the

Re: CoreData headaches

2016-10-30 Thread Chris Hanson
d to pass one along with an NSManagedObject, you can just ask the NSManagedObject for the context it’s a part of. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Co

Re: CoreData headaches

2016-10-30 Thread Chris Hanson
er. > So would that be the right place to use the NSManagedObjectContext's > performBlock:? What you’ve done actually looks correct, in that you’re only interacting with the managed object’s managed (Core Data) properties (“thumb” in this case) within the block passed to -performBl

Re: Representing an object graph

2016-12-06 Thread Chris Hanson
om/reference/coredata/nsatomicstore> lets you do. There are only a few methods to override, and then you can just use one of your own documents as if it were one of the built-in persistent store types. -- Chris ___ Cocoa-dev mailing list (Cocoa-de

Re: Representing an object graph

2016-12-15 Thread Chris Hanson
On Dec 15, 2016, at 7:24 PM, Daryle Walker wrote: > > On Dec 6, 2016, at 10:18 PM, Chris Hanson mailto:c...@me.com>> > wrote: >> >> On Dec 5, 2016, at 4:18 PM, Daryle Walker > <mailto:dary...@mac.com>> wrote: >> >>> I've heard tha

Re: Weird NSPredicate structure when using "first" in keypath

2017-01-17 Thread Chris Hanson
t it's on them to get the syntax correct rather than on you to try to figure out their intent. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Building .ipa in XC6.01

2014-09-22 Thread Chris Paveglio
We're having a hard time building an IPA file in XC6. From what I have read online, it seems to be a bug. We can make a .pkg file or an XCarchive file from our app. Any confirmation this really is a bug? Seems really unusual for such an important feature. We have already tried to add the LSRequi

Multiple Today Widgets

2014-09-22 Thread Chris Paveglio
allow multiple widgets for distribution? I see no technical reason why it would not. 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 coco

[MODERATOR] End of Thread: Re: Blurry is the New Sharp

2015-01-08 Thread Chris Hanson
Please stick to technical discussion on cocoa-dev. If there are remaining technical questions in this thread, please ask them in their own threads. (And avoid off-topic derails.) Thanks. -- Chris (cocoa-dev co-mod) ___ Cocoa-dev mailing list

Re: All buttons lost focus ring on Yosemite

2015-03-12 Thread Chris Cianflone
on't ask why we are using such old SDKs, and only moved to 10.8 instead of 10.9 or 10.10, that's another story for another time.) You can see this in a simple Cocoa app too started from an Xcode template. Thanks, Chris _ Chris Cianflone www.makemusic.com On Tue, Mar 10

MODERATOR: End of Thread (was Re: I am reluctant to file any more bugs until those already reported are fixed)

2015-07-21 Thread Chris Hanson
This is the place for neither rants nor personal attacks. Please keep it technical. Thanks. -- Chris Hanson (cocoa-dev co-moderator) ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: MODERATOR: End of Thread (was Re: I am reluctant to file any more bugs until those already reported are fixed)

2015-07-21 Thread Chris Hanson
ack/ <http://www.apple.com/feedback/>> and the bug reporter at <http://bugreport.apple.com/ <http://bugreport.apple.com/>>. -- Chris Hanson (cocoa-dev co-mod) ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

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:

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. — C

Re: Code Signing

2009-09-06 Thread Chris Suter
nvalidated. By the way, the best list for code signing questions 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

usb notification

2009-09-08 Thread Chris Carson
= 0; [self registerDeviceCallbackHandler]; } return self; } @end static void AppearedNotificationHandler (void * refCon, io_iterator_t iterator) { NSLog(@"AppearedNotificationHandler"); } Any help is much appreciated. Thanks, Chris _

Re: usb notification

2009-09-08 Thread Chris Carson
cation() returns no errors (0). > > - (id) init > > { > >[super init]; > > > >if (self) { > > This is not the correct initializer pattern. You need > to assign to self here. > > --Kyle Sluder Chang

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:

Re: testing ppc on intel

2009-09-14 Thread Chris Idou
_ From: Greg Guerin To: list-cocoa-dev 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,

Re: Grand Central Dispatch vs CFRunLoop

2009-09-16 Thread Chris Kane
get those notifications. That's a separate matter from NSTask, but people may confuse the two together so I mention it here. Chris Kane Cocoa Frameworks, Apple ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

Re: Is a serial NSOperationQueue FIFO?

2009-09-16 Thread Chris Kane
s are just one thing 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 Coc

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

2009-09-16 Thread Chris Kane
urprising to that stuff (breaking assumptions 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 ge

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 not

Re: Static Analyzer and Core Foundation

2009-09-18 Thread Chris Parker
t's probably complaining about 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, whi

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 deplotment

Re: building and running on Snow Leopard

2009-09-23 Thread Chris Idou
ecific work arounds? From: Ken Thomases To: Chris Idou 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 an applicati

Re: building and running on Snow Leopard

2009-09-23 Thread Chris Idou
From: Ken Thomases >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 the >sorts of bug

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 at

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 NSPointerArr

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? Th

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 backgrou

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 type

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 sim

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 items

Re: NSDocumentController didCloseAllSelector

2009-09-30 Thread Chris Idou
____ From: Graham Cox To: Chris Idou 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 for closeAllDocumentsWithDelegate:didCloseAllS

Re: whether to use core data...

2009-10-04 Thread Chris Hanson
n their applications on both 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

Re: Snow Leopard: unsupported PointerFunctions configuration was requested

2009-10-10 Thread Chris Idou
[[garbageCollector defaultCollector] disableCollectorForPointer:RKCacheIntegerKeyPointerFunctions]; [[garbageCollector defaultCollector] disableCollectorForPointer:RKCacheObjectValuePointerFunctions]; } } #endif // ENABLE_MACOSX_GARBAGE_COLLECTION } } ____ From: Bill Bumgarner T

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
[[garbageCollector defaultCollector] disableCollectorForPointer:RKCacheIntegerKeyPointerFunctions]; [[garbageCollector defaultCollector] disableCollectorForPointer:RKCacheObjectValuePointerFunctions]; } } #endif // ENABLE_MACOSX_GARBAGE_COLLECTION } } ____ From: Bill Bumgarner T

Re: Appropriate dealloc and finalize actions

2009-10-13 Thread Chris Hanson
nected nodes, I’d have the document own (retain) the nodes and have the nodes just reference (assign) each other. That would allow me to keep “stop referencing node A from node B” distinct from “remove node A from the document.” The latter may imply the former, but the former generally d

Re: SelectedRowIndexes

2009-10-15 Thread Chris Williams
erator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/chris%40clwill.com > > This email sent to ch...@clwill.com __

Re: Problem writing unit tests - "Incompatible types in initialization"

2009-10-25 Thread Chris Hanson
hat it’s invoking behavior rather than accessing state on the Converter class itself. — 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-

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

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: 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 the

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 th

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 up

Re: Should I learn CoreData for this project?

2009-11-10 Thread Chris Hanson
on policy: 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.

Performance

2009-11-15 Thread Chris Carson
ogies for the length of this post 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

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 (1

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 pa

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 To: Chris Idou Cc: cocoa-dev@lists.apple.com Sent: Fri, 20 November, 2009 11:21:58 AM Subject: Re

Re: tiffs on pasteboard

2009-11-19 Thread Chris Idou
If I double click the tiff in Finder, and open it in Preview, click it in Preview, Command-A, Command-C, the same thing happens. From: Kyle Sluder To: Chris Idou Cc: cocoa-dev@lists.apple.com Sent: Fri, 20 November, 2009 11:36:54 AM Subject: Re: tiffs on

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 To: Kyle Sluder Cc: coco

Re: tiffs on pasteboard

2009-11-19 Thread Chris Idou
Alfke To: Chris Idou Cc: Kyle Sluder ; cocoa-dev@lists.apple.com Sent: Fri, 20 November, 2009 12:11:34 PM Subject: Re: tiffs on pasteboard On Nov 19, 2009, at 4:43 PM, Chris Idou wrote: > If I double click the tiff in Finder, and open it in Preview, click it in > Preview, Command-A, Com

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 To: Jens Alfke ; Chris Idou Cc: cocoa-dev@lists.apple.com Sent: Fri, 20 November, 2009 12:03:33 PM Subject: Re: Advice a

Re: tiffs on pasteboard

2009-11-19 Thread Chris Idou
? From: Jens Alfke To: Chris Idou Cc: Kyle Sluder ; 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: If copying from Finder actually > copies th

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] Progname[8699]

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 To: Chris Idou Cc:

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 To: Chris Idou ; Cocoa Forum Cc: Jeremy Pereira Sen

Re: tiffs on pasteboard

2009-11-20 Thread Chris Idou
n Nov 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

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: Better sorting using threads?

2010-03-12 Thread Chris Ridd
good analysis of NSArrays at <http://ridiculousfish.com/blog/archives/2005/12/23/array/> Cheers, Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact th

Re: App modal window and secondary thread

2010-03-20 Thread Chris Hanson
odal on a background thread just as a matter of cleanliness. I'd implement a delegate/callback/notification for my background processor to tell whatever is controlling it that it's done. That's what would invoke abortModal - and it woul

Re: Allowing incoming connections.

2010-03-25 Thread Chris Hanson
re-authorize on every update to the application. — 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

NSImageView Will Not Alias Images

2010-04-06 Thread Chris Tracewell
I am trying to get NSImageView to alias dropped images, but it refuses. Just spent an hour looking and trying several variations to no avail. Here's what I have done in a subclass of NSImageView. -(void)drawRect:(NSRect)rect { [[NSGraphicsContext currentContext] setImageInte

Tricky binding and continuous update problem

2010-04-06 Thread Chris Idou
I've got a problem that I had working, but my app suddenly seems broken, and I'm not sure if I did something or what. All I know is old versions of my app work, but now my code base doesn't. I've got a UI with a NSTableView at the top, and some individual fields at the bottom. Typical UI wher

Re: NSImageView Will Not Alias Images

2010-04-06 Thread Chris Tracewell
On Apr 6, 2010, at 4:50 PM, Ken Ferry wrote: On Tue, Apr 6, 2010 at 2:58 PM, Jens Alfke wrote: On Apr 6, 2010, at 1:17 PM, Chris Tracewell wrote: I am trying to get NSImageView to alias dropped images, but it refuses. Nitpick: you mean "antialias". Aliasing is what creates t

Re: Tricky binding and continuous update problem

2010-04-06 Thread Chris Idou
I am using an NSArrayController. I don't know, it seems to me like having everything always in synch is nicer. The user can see immediately how changing one field is affecting the other. And it used to work. - Original Message From: Jerry Krinock To: Chris Idou Sent: W

Re: Tricky binding and continuous update problem

2010-04-06 Thread Chris Idou
ome reason for it. http://stackoverflow.com/questions/1028700/core-data-strange-bindings-error-on-re-opening-a-document-help - Original Message ---- From: Kyle Sluder To: Chris Idou Cc: Jerry Krinock ; cocoa-dev@lists.apple.com Sent: Wed, 7 April, 2010 11:21:28 AM Subject: Re: Tricky bind

Reordered columns and [tableView editColumn:0 row:ind withEvent:nil select:YES];

2010-04-07 Thread Chris Idou
I've got some code that uses editColumn:0 to force the user into edit mode on the first column. But I've noticed that if user column reordering is allowed, this no longer edits the correct column. This seems odd to me because I thought Cocoa pretty much shielded the programmer from all the us

NSTableView Key Value Observing performance pickle

2010-04-08 Thread Chris Idou
I seem to have got myself into some pickle with key value observing whereby things to do with NSTableView are freezing up for minutes at a time. Every time I pause the program there are things to do with adding and removing observers, but all of it is in Apple's code, so I'm not quite sure wha

  1   2   3   4   5   6   7   8   9   10   >