Re: Retrieving the EXIF date/time from 250k images

2023-01-08 Thread Chris Ridd via Cocoa-dev
indexed by Spotlight, can you get the EXIF information from a NSMetadataQuery search? 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: NSTimer +timerWithTimeInterval:

2020-04-29 Thread Chris Walters via Cocoa-dev
I’m not suggesting you do this as any kind of real solution I just wanted to see if it would work, but I was able to ‘hack’ the immutable timer interval, perhaps something like this can help you track down what is happening. I found a couple of structs in GitHub for CF source and wondered if it

Re: Thoughts on Objective-C++

2019-11-12 Thread Chris Ridd via Cocoa-dev
ays. I guess they agreed with you, because it never got released AFAIK. I think it was mostly inherited from Next. https://lowendmac.com/1997/red-box-blue-box-yellow-box/ Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: initWithWindowNibPath and Base Internationalization

2017-08-16 Thread Chris Cianflone
ng up correctly in German. Thanks again! Chris On Wed, Aug 16, 2017 at 12:52 PM, Steve Mills wrote: > On Aug 16, 2017, at 10:16 AM, Chris Cianflone > wrote: > > In our test plugin, we have a dialog 20129.xib that has a base localization > and a German localization for testing pu

initWithWindowNibPath and Base Internationalization

2017-08-16 Thread Chris Cianflone
ggestions on how to get this all working? Thanks! Chris - Chris Cianflone www.makemusic.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Conta

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-22 Thread Chris Ridd
L LETTER E WITH ACUTE (U+00E9) How can a “next gen” filesystem avoid using Unicode rules when handling filenames? Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Cont

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-09 Thread Chris Ridd
n the directory containing the “bad” document. Possibly the process of zipping stuff up will mangle the bytes of the filename, so the more “raw” info you can get from the OS the better. Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.co

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-06 Thread Chris Ridd
String is via UTF8 (and it worked fine with Arabic > letters for this person before updating to the 10.3 beta) so I don’t think > I’m doing anything wrong. > > Any suggestions? If that iOS beta has upgraded the user’s filesystem to APFS, then it may b

Re: Memory-mapped sub-data?

2017-02-27 Thread Chris Ridd
iments today and found that it > works the way you want, there’s no guarantee it’ll keep working that way. It isn’t NSData, but libdispatch’s dispatch_data_t might be a useful way forward. The dispatch_data_create(3) man page says it avoids "copying the represented memory as much as pos

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

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

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

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

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

Re: Converting SenTesting framework tests to XCTests

2014-07-10 Thread Chris Hanson
a information about what the failure means or that might help you diagnose it at a glance. Also, you should not need to perform this conversion by hand. Xcode has a conversion tool that will do this work for you, it’s available via the “Edit ▸ Refactor ▸ Convert to XCTest…” menu item. -- C

Re: Opinion: Core Data or roll my own?

2014-04-09 Thread Chris Hanson
Turns out Core Data has the design it does for a reason… -- 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.

Re: SQLite Question

2014-03-28 Thread Chris Hanson
ciding whether to include your own version of a library. -- 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.app

Re: NSInteger/NSUInteger Considerations (64 bit)

2014-03-26 Thread Chris Hanson
idth integers (the header has both). I'd avoid legacy Carbon types like "SInt32" in new code; compatibility needs may require them to be defined in different ways than you expect. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@li

Re: VC# vs. ObjC and partial abstract classes

2014-03-18 Thread Chris Hanson
On Mar 18, 2014, at 7:29 PM, Luther Baker wrote: > A _better_ analogy to an Objective-C @protocol would be a formal Java > interface. In their design, Java’s interfaces were explicitly modeled on Objective-C’s @protocol construct. --

MODERATOR: End of Thread (was Re: NSSavePanel?)

2014-03-06 Thread Chris Hanson
This is off-topic for cocoa-dev. -- 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 the list. Contact the moderators at cocoa-dev-admins(at

Re: Mutually exclusive item filtering-comparing

2013-11-05 Thread Chris Paveglio
ng my item# together and multiply n wouldn't give a real offset to a bit in a bitmap. Chris On Tuesday, November 5, 2013 2:07 PM, Jens Alfke wrote: On Nov 5, 2013, at 10:17 AM, Chris Paveglio wrote: My exclusions array has many simple objects. Each object has 3 ivars- (int)itemID1, (i

Re: Mutually exclusive item filtering-comparing

2013-11-05 Thread Chris Paveglio
left hand, then change tableView:numberOfRowsInSecton: for the right hand table to show zero. This can be done without any looping at all. Does this help? -jwd // Joseph W. Dixon On Nov 5, 2013, at 12:17 PM, Chris Paveglio wrote: What is the most efficient way to compare a list of mutually

Mutually exclusive item filtering-comparing

2013-11-05 Thread Chris Paveglio
austed. It seems extremely process intensive. Is there a better way, or some basic concept I might be missing? Thanks, Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Re: Deadlock during NSCache flush

2013-10-23 Thread Chris Hanson
What Greg says on this topic is authoritative. -- Chris Sent from my iPad > On Oct 23, 2013, at 4:35 PM, Maxthon Chan wrote: > > There are still situations that you may want a little touch-up so from time > to time a manual call to these is still needed. > >> On

Re: MODERATOR: (Temporary) End of Thread (was Re: I can't use man command to find c api manuals in Mavericks GM)

2013-10-22 Thread Chris Hanson
OS X Mavericks is available on the App Store now. -- Chris, cocoa-dev co-mod -- who would like to point out the timestamp when he posted the original message ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

MODERATOR: (Temporary) End of Thread (was Re: I can't use man command to find c api manuals in Mavericks GM)

2013-10-22 Thread Chris Hanson
Until OS X Mavericks becomes available to everyone via the App Store, it's still under NDA. Once it's available it can be discussed here, until then it can't. -- Chris, Cocoa-Dev co-mod ___ Cocoa-dev mailing list (Cocoa-dev@

Re: Determine keys used in NSPredicate

2013-10-20 Thread Chris Hanson
can use the various methods on it and its subclasses to recourse through the predicate and find any key path expression objects, and get the key paths they use. Doing so doesn't rely on the result of -predicateFormat and it uses entirely public

Re: Core Data with ODBC databases?

2013-10-17 Thread Chris Hanson
-stack access a persistent store, Core Data’s answers are very similar to the Enterprise Objects Framework: Thread-isolation (use a different context in different threads) and optimistic locking (deal with locking failures on save). -- Chris ___ Coc

MODERATOR: End of Thread (was Re: [OT] Buttons in iOS 7)

2013-10-10 Thread Chris Hanson
Please keep posts on-topic for this list and do not continue this off-topic thread. 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

MODERATOR: End of Thread (was Re: iOS7 Controls)

2013-09-24 Thread Chris Hanson
Please remember that the cocoa-dev list is for technical discussion of Cocoa and Cocoa Touch development, and keep the discussion on-topic. -- Chris Hanson cocoa-dev co-mod ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

UIPickerView and multiple text fields, iOS

2013-09-20 Thread Chris Paveglio
ne until next     [[self delegate] performSelector:@selector(setPaxFieldValue:)                           withObject:thePax]; } Thanks Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comment

Re: Progress for archiving/dearchiving

2013-09-16 Thread Chris Devereux
Another angle worth looking at: Depending on the output format you're using with NSKeyedArchiver, your file might already contain an object count, even if the API doesn't expose it. According to the Cocotron source[1], the binary plist format actually does this. It won't correspond exactly to the

Re: Progress for archiving/dearchiving

2013-09-16 Thread Chris Devereux
How about tracking the number of written objects when saving the document, then encoding an additional key containing the object count at the top level of the archive? This could then be retrieved before decoding the root object. A possible problem with this idea is that it might require the data

Re: Is it possible to define class from interface builder?

2013-08-14 Thread Chris Hanson
oad the view controller from the named nib and embed its view within itself. -- Chris [1] User Defined Runtime Attributes are values set in Interface Builder that then get set on your objects via KVC when a nib file is loaded. They work in OS X 10.6 and iOS

MODERATOR: End of Thread (was Re: There must be a live human at Apple?)

2013-08-03 Thread Chris Hanson
Please do not continue this thread. As per the list guidelines, please keep discussion on the list to technical topics related to Cocoa development, and do not cross-post to multiple lists. -- Chris Hanson cocoa-dev co-mod ___ Cocoa-dev

Re: How To Bind The Enabled Property of NSPopUpButtonCell Menu Items

2013-08-02 Thread Chris Tracewell
tem. I noticed that the NSPopUpButtonCell also has an autoenables > items flag; a quick bit of hacking on the ButtonMadness sample app shows that > needs to be off too. I'll send you the files off-list. > > On Aug 2, 2013, at 1:56 PM, Chris Tracewell wrote: > >> Thanks for the sugge

Re: How To Bind The Enabled Property of NSPopUpButtonCell Menu Items

2013-08-02 Thread Chris Tracewell
it goes through > menu validation instead of bindings. > > On Aug 2, 2013, at 1:12 PM, Chris Tracewell wrote: > >> I've got a two column NSTableView that is bound to an array controller. Each >> of the elements in the array looks something like this... >> &g

How To Bind The Enabled Property of NSPopUpButtonCell Menu Items

2013-08-02 Thread Chris Tracewell
I've got a two column NSTableView that is bound to an array controller. Each of the elements in the array looks something like this... NSMutableDictionary *theDictionary = [NSMutableDictionary dictionaryWithDictionary: @{@"myOptions":theOptionArray,@"myTitle": theTitle}]; Column 1 is bound to m

MODERATOR: End of Thread (was Re: Apple Developer Update)

2013-07-26 Thread Chris Hanson
Sorry, but this is off-topic for the cocoa-dev list. Please keep discussion here to technical topics related to Cocoa development. To provide feedback to Developer Support, visit the contact page at <https://developer.apple.com/contact/>. Thanks. -- Chris, cocoa-dev co-mod

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

MODERATOR NOTE: Re: NSOutlineViews and Mountain Lion

2013-07-10 Thread Chris Hanson
for a supported way to disable animations system-wide should be filed at http://bugreport.apple.com rather than sent here. An example of a post that would be on-topic here is a question like "How can I make the NSOutlineView in my app not animate?" -- Chris -- your othe

Carbon removal

2013-07-03 Thread Chris Paveglio
dlerUPP( AppEventHandler),                                  GetEventTypeCount( sAppEvents ),                                  sAppEvents, self, NULL ); --- Thanks for any help. Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: Concurrent MOCs

2013-06-10 Thread Chris Hanson
) access, because that can fire or traverse faults. -- 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/Un

NSPopUpButtonCell - How To Get The Changed Value

2013-06-08 Thread Chris Tracewell
I have a tableview that has two columns. The second column has an NSPopUpButtonCell. The tableview content is supplied via an array controller of dictionaries. The first column shows the "title" key's value and the second column (the NSPopUpButtonCell) shows and array of choices in the dictionar

Re: OutlineView shouldSelectItem Being Called Twice

2013-06-05 Thread Chris Tracewell
scard options if need be? -CT On Jun 4, 2013, at 7:31 PM, Graham Cox wrote: > > On 05/06/2013, at 11:56 AM, Chris Tracewell wrote: > >> Is this normal behavior? Thanks for the help. > > > Probably. This method should just answer the question, not attempt to > inte

RE: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-05 Thread Cianflone, Chris
Just an FYI that we have opened a TSI on this. I'll let you know the details once we sort this out with Apple. Thanks, Chris From: cocoa-dev-bounces+ccianflone=makemusic@lists.apple.com [cocoa-dev-bounces+ccianflone=makemusic@lists.apple.co

OutlineView shouldSelectItem Being Called Twice

2013-06-04 Thread Chris Tracewell
I've got a view controller set up as the delegate for an outlineView. The view controller implements the -(BOOL)outlineView:(NSOutlineView *)outlineView shouldSelectItem:(id)item delegate method. I show an alert and return NO if the user has not saved some changes or return YES if all is well. T

RE: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-02 Thread Cianflone, Chris
<> Whoops, that should obviously say "if we can't get the temp files to work". Chris From: cocoa-dev-bounces+ccianflone=makemusic@lists.apple.com [cocoa-dev-bounces+ccianflone=makemusic@lists.apple.com] on behalf of Cian

RE: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-02 Thread Cianflone, Chris
like we are not alone with problems like this. Fearing we won't be able to get rid of temp files in our mdimporter, does anyone have any other suggestions other than telling our users, sorry it doesn't work under 10.8. Thanks, Chris From: Kyl

creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-01 Thread Cianflone, Chris
160:707] writeToURL You don’t have permission to save the file “EmptyFile”. I get the same output for our 32-bit and 64-bit builds. Surely we must still be able to create temp files? Thanks, Chris _ Chris Cianflone Senior Software Engineer www.makemusic.com<

Re: crash in

2013-05-24 Thread Chris Ridd
me issue with a really big (or somehow mangled) integer? Try setting a breakpoint on strtoull_l and see what kind of arguments it is getting. Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

NSTextField binding returns nil not empty string

2013-04-30 Thread Chris Paveglio
a value is removed from it, or can I force it to return an empty string? ---custom object (with ARC): @interface SpecialObject : NSObject @property(nonatomic, readwrite) NSString*headline; ... Thanks, Chris ___ Cocoa-dev mailing list (Coco

Binding NSDictionary in NSArray into table view cell

2013-04-16 Thread Chris Paveglio
t the array controller is getting the values set, but just won't translate to showing in the cell view. Any other tips on special forms of input that the Model Key Path can take? Any good suggestions, examples, or reference to a tutorial on this? Thanks, Chris

Re: Custom Delegate - Using _delegate works but not delegate or [self delegate]

2013-03-26 Thread Chris Tracewell
On Mar 26, 2013, at 1:11 PM, Conrad Shultz wrote: > If code expecting an NSOutlineView receives a TKOutlineView instance it may > break or behave unexpectedly since it may well try to set a delegate > conforming to but you have made your class require a > delegate conforming to the more speci

Re: Custom Delegate - Using _delegate works but not delegate or [self delegate]

2013-03-26 Thread Chris Tracewell
On Mar 26, 2013, at 12:38 PM, Quincey Morris wrote: > 2. Redeclare the "delegate" property: > > @interface TKOutlineView : NSOutlineView {} > @property (nonatomic,readonly) id delegate; > @end > > @implementation TKOutlineView > @dynamic delegate; > … >

Re: Custom Delegate - Using _delegate works but not delegate or [self delegate]

2013-03-26 Thread Chris Tracewell
On Mar 26, 2013, at 12:38 PM, Quincey Morris wrote: > 2. Redeclare the "delegate" property: > > @interface TKOutlineView : NSOutlineView {} > @property (nonatomic,readonly) id delegate; > @end > > @implementation TKOutlineView > @dynamic delegate; > … >

Re: Custom Delegate - Using _delegate works but not delegate or [self delegate]

2013-03-26 Thread Chris Tracewell
On Mar 25, 2013, at 7:33 PM, Conrad Shultz wrote: > In the code you shared you had used "delegate" in one place and "[self > delegate]" in another; the second case is the correct one. If you replace all > naked uses of "delegate" with "[self delegate]" and you continue to get > compile-time er

Re: Custom Delegate - Using _delegate works but not delegate or [self delegate]

2013-03-25 Thread Chris Tracewell
On Mar 25, 2013, at 1:54 PM, Conrad Shultz wrote: > "[self delegate]" is not the same as "delegate" - the former sends the > -delegate message, the latter references a variable named "delegate" (which > the compiler is telling you does not exist). I assumed that since my subclass inherits from

Custom Delegate - Using _delegate works but not delegate or [self delegate]

2013-03-25 Thread Chris Tracewell
I have a subclass of NSOutlineView that has custom delegate methods. In the implementation file I get an error for "No known instance method for selector..." when I call these declared methods using [self delegate] or delegate. However the compiler suggested using _delegate and that makes the e

Re: ARC Help

2013-03-22 Thread Chris Tracewell
On Mar 22, 2013, at 3:27 PM, Quincey Morris wrote: > (sorry, this turned into a tome) No need to apologize. Very, very helpful - thank you so much for the input, it clears everything up. I'll be reading up on the modern Objective-c changes. Thanks CT _

Re: ARC Help

2013-03-22 Thread Chris Tracewell
On Mar 22, 2013, at 1:51 PM, Quincey Morris wrote: > Note that you can likely just remove the ivar declaration completely, or at > worst move it to the @implemenation statement instead. There's really no need > to put a private ivar in a public interface file any more. In this case this is a

ARC Help

2013-03-22 Thread Chris Tracewell
In a project I am moving from GC to ARC I'm trying to understand the nuances of the new declarations. I have many pre-ARC properties that look like... @interface TKObject : NSObject { NSString *theString;

Re: How can modal window pass messages to its parent window?

2013-03-18 Thread Chris Tracewell
> On Mar 18, 2013, at 12:15 PM, Chris Tracewell wrote: > >> I have a main window which has a child/auxilary window. When the user >> presses a button in the UI the main window controller inits the child, >> assigns itself as the object for the child window's

How can modal window pass messages to its parent window?

2013-03-18 Thread Chris Tracewell
I have a main window which has a child/auxilary window. When the user presses a button in the UI the main window controller inits the child, assigns itself as the object for the child window's myOwner property and then launches the child window as a modal via NSApp runModalForWindow. This worked

Re: ARC Release too soon

2013-03-16 Thread Chris Paveglio
Sure I totally understand that. My question is more of "what is the most elegant way to do it". Add them to an array? - Original Message - From: iain To: Chris Paveglio Cc: Cocoa Dev List Sent: Saturday, March 16, 2013 2:35 PM Subject: Re: ARC Release too soon On 16 Ma

ARC Release too soon

2013-03-16 Thread Chris Paveglio
7;t seem to leak), or how do I do something so ARC doesn't dealloc window controllers at the end of the function that fires them off? Thanks, Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mode

Re: Quicklook and changing previewed image from table

2013-02-28 Thread Chris Paveglio
I think I figured something out. I used the table view's method for  tableViewSelectionDidChange and I could set the panel's previewed item as that changed. It works but might not be optimal. Thanks for any replies. Chris - Forwarded Message ----- From: Chris Paveglio To: Coco

Quicklook and changing previewed image from table

2013-02-28 Thread Chris Paveglio
ow] windowController] togglePreviewPanel];     } else {         [super keyDown:theEvent];     } } I tried putting the refresh... call inside of the else block, but that didn't do anything. Would something go in my tableView, or the WindowController (which is where the panel is

Re: Anyone able to get __crashreporter_info__ to work on iOS?

2013-02-27 Thread Chris Markle
Thanks for the followup Greg. Chris On Wed, Feb 27, 2013 at 5:05 PM, Greg Parker wrote: > On Feb 27, 2013, at 4:52 PM, Chris Markle wrote: >> Anyone have any success using this on technique to annotate crash >> reports on iOS? > > The iOS crash reporter does not supp

Anyone able to get __crashreporter_info__ to work on iOS?

2013-02-27 Thread Chris Markle
shreporterInfo { __crashreporter_info__ = "TestApp 1.0.0"; } - (void)crash { char *addr = 0; *addr = 1; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } @end Anyone have any success using this

Re: Thread safety of Bonjour Cocoa classes? (NSNetService, etc.)

2013-02-14 Thread Chris Parker
. NSNetService (and NSNetServiceBrowser) automatically schedules itself on the run loop of the thread it's being created on. If the run loop isn't being spun (e.g. on a thread created by detaching a pthread or an NSThread) then you won't get callbacks. .chris __

Re: How to read the deployment target of a .plugin?

2013-02-12 Thread Chris Hanson
ks in /,” which is in some ways like saying “don’t use an SDK.” It’s how we used to do things in the days before SDKs, but we’ve had SDKs now for around 10 years, so it’s time to make the switch. :) -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: How to read the deployment target of a .plugin?

2013-02-12 Thread Chris Hanson
existing applications stay binary-compatible. Applications built against a newer SDK, however, get the correct framework behavior. Since this is all determined by the controlling executable, you cannot get new behavior in a plug-in and old behavior in its host app (or vice versa) by building the

Re: NSTask Explodes. Clueless.

2013-02-06 Thread Chris Hanson
t is injecting itself into your app's address space - and into the address space of the forked subprocess, and trying to do something "on startup." What loaded libraries are listed in the crash dump? -- Chris ___ Cocoa-dev mailing

Re: NSTask Explodes. Clueless.

2013-02-06 Thread Chris Hanson
specialized cases, you shouldn't need to figure out how to handle Mach exceptions in your own code. They signify extremely serious errors, ones you're almost certainly unlikely to be able to recover from. -- Chris ___ Cocoa-dev mailing

NSOutlineView -reloadItem: vs insertItemsAtIndexes:inParent:withAnimation:

2013-02-03 Thread Chris Devereux
#x27;t seem to reproduce the issue. Has anyone noticed any differences in behaviour between these two ways of updating an outline view? Thanks Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderat

Re: Issue with Core Data Model

2013-01-12 Thread Chris Hanson
you file a bug at bugreport.apple.com and post (or send me) the bug number? Thanks! > Can I delete the old models and leave just the mapping model files? The mapping models need to reference the data models, so no. You could conceivably rename the properties in all of the models and then re

Re: Issue with Core Data Model

2013-01-12 Thread Chris Hanson
result. In the command line debugger, "print *someObject" will print someObject's ivars just as if you were dereferencing a struct*, as long as its real type (eg not "id") is known or has been cast to. -- Chris ___ Cocoa-d

Re: Custom initWithFrame?

2013-01-05 Thread Chris Hanson
s via KVC, but only supports setting properties of plist types. -- 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.a

Re: Beachballing 2

2012-12-04 Thread Chris Hanson
Please don't create lots of different message threads for a single issue/discussion. Sticking to a single thread makes it much easier to follow by keeping all of the context together. Thanks. -- Chris -- cocoa-dev's other moderator

NSPasteboard type for InDesign

2012-09-17 Thread Chris Paveglio
y drag and drop implementation, but I want to clarify that I am using the right file type so I can eliminate that as one of my problems. BTW any example code for DnD appreciated! ;-) Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Hints for supporting dragging a file onto the dock icon, then onto a row in menu presented at that point?

2012-09-13 Thread Chris Markle
g the file onto the icon? Then, once I get a menu showing, how do I get to the point where I can drag the file onto a row in the menu? I'm perfectly fine with pointers for things and areas to look at relative to this... Thanks in advance! Chris __

Re: Best data source for table view in document window

2012-09-05 Thread Chris Hanson
only thing I’d have to do differently is put ivar declarations in the main @interface in the header file. -- 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: Best data source for table view in document window

2012-09-05 Thread Chris Hanson
custom NSWindowController subclass own the rest of your view, and to have the document concern itself solely with “document-like” things such as persistence. -- Chris [1] Those who used the Enterprise Objects Framework used a combination of EODisplayGroup and EOAssociation for this. EODisplayGroup wa

Re: KVG generic enough?

2012-07-21 Thread Chris Hanson
r if you use a distinct class. For example, you could create a class that has a key path and an NSExpression used to generate a value based on parameters passed in (such as the original value at the key path). Then not only do you not have to do

Re: do you init your instance variables in init method or outside the class?

2012-07-18 Thread Chris Ridd
ing]; > > because sending a method to nil is perfectly safe, unlike C++. > >>foodLists = [NSMutableArray array]; > > is necessary, as you've seen, but not for the reasons you think. Both of those lines are going to cause random crashes

Re: Core Data Multiuser

2012-07-17 Thread Chris Hanson
asy multiuser” in data management frameworks: The choices that need to be made often boil down to user experience, and can vary dramatically from one application to the next. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pl

  1   2   3   4   5   6   7   8   9   10   >