Re: Core Data concurrency during import of folder contents

2015-01-30 Thread Steve Mills
Isn't there just an example of a document-based app that implement concurrent Core Data importing and all that jazz? I see tons and tons of little scraps of info and examples (which end up not working with my app as it is because it was written based on Apple's outdated documentation), but not t

Re: copyWithZone archive/unarchive

2015-01-30 Thread pscott
Depending on the complexity of the application and amount of core services utilized, converting an existing manual retain/release project to ARC can instigate a battle you may not want to fight. When I attempted that with my medium complexity application, I quickly realized it was a mistake, he

Re: copyWithZone archive/unarchive

2015-01-30 Thread Jens Alfke
> On Jan 30, 2015, at 8:43 PM, David Rowland wrote: > > It’s best to use ARC uniformly in a project and not mix with non-ARC modules. > Xcode has a tool to upgrade projects to ARC. I have used it a number of > times, and it seems to do a very good job. I haven't had any problem mixing ARC wit

Re: copyWithZone archive/unarchive

2015-01-30 Thread David Rowland
It’s best to use ARC uniformly in a project and not mix with non-ARC modules. Xcode has a tool to upgrade projects to ARC. I have used it a number of times, and it seems to do a very good job. David > On Jan 30, 2015, at 8:15 PM, Jerry Krinock wrote: > > >> On 2015 Jan 30, at 10:08, Trygve

Re: copyWithZone archive/unarchive

2015-01-30 Thread Jerry Krinock
> On 2015 Jan 30, at 10:08, Trygve Inda wrote: > > Do you see non-ARC code becoming obsolete? Non-ARC code is already obsolete, but what I think you mean is will non-ARC code fail to compile or run in some future OS version. Never say “never” with Apple, but in this case, I don’t think so, b

Re: Core Data concurrency during import of folder contents

2015-01-30 Thread Roland King
> On 31 Jan 2015, at 01:20, Steve Mills wrote: > > I'm trying to learn Core Data. I have a working document model hooked up to a > table view (OS X). I have an import method that uses FSDirectoryEnumerator to > add an object for each file in the folder. Oky doke! But that blocks for a > few s

Re: Modernising dragging problem

2015-01-30 Thread Graham Cox
> On 31 Jan 2015, at 10:25 am, Kyle Sluder wrote: > > Does the source implement the required method -[ > draggingSession:sourceOperationMaskForDraggingContext:]? This is the new > replacement for -draggingSourceOperationMaskForLocal:. Ah, thanks - It wasn't - but having corrected that, it hasn

Re: Modernising dragging problem

2015-01-30 Thread Kyle Sluder
On Fri, Jan 30, 2015, at 05:15 PM, Graham Cox wrote: > In order to use NSDraggingItem, I first need to make sure the stuff I'm > dragging supports NSPasteboardWriting. I've done that, it seems > straightforward enough. Then I build a NSDraggingItem and use the same > image I previously used, so the

Modernising dragging problem

2015-01-30 Thread Graham Cox
I'm updating some older code that uses the now-deprecated [NSView dragImage:at:offset:pasteboard:source:slideback:] to use NSDraggingSession and pals. Note that this older code works just fine, I've never had any issues with it. I'm doing this mostly just to clear out compiler warnings, though m

Re: Core Data concurrency during import of folder contents

2015-01-30 Thread Terrence Geernaert
I prefer the GCD method but there are a few details that cause people trouble when combining GCD with CoreData. 1. A named GCD queue may guarantee serial processing but it does not guarantee that it will always use the same thread 2. NSManagedObjectContexts are not thread safe, and it’s not just

Re: How to avoid user interaction in WebView

2015-01-30 Thread Juanjo Conti
For the record, I'm capturing: NSEventMask.RightMouseDownMask | NSEventMask.RightMouseUpMask | NSEventMask.LeftMouseDownMask | NSEventMask.LeftMouseUpMask | NSEventMask.MouseMovedMask | NSEventMask.KeyDownMask | NSEventMask.KeyUpMask | NSEventMask.ScrollWheelMask An to exit I'm returning: NSEven

Re: How to avoid user interaction in WebView

2015-01-30 Thread Juanjo Conti
Thanks! this approach is hopeful! Now I just need to figure out which NSEvent return for all the captured events, so the screensaver close properly. I'll let you know my advances. Thanks again, On Fri, Jan 30, 2015 at 2:03 PM, Kyle Sluder wrote: > On Jan 30, 2015, at 7:47 AM, Juanjo Conti > wr

Re: copyWithZone archive/unarchive

2015-01-30 Thread Trygve Inda
> On Jan 30, 2015, at 7:26 AM, Trygve Inda wrote: > >>> On Jan 29, 2015, at 9:44 PM, Trygve Inda wrote: However, naming conventions expect copy to not be autoreleased so should the above really be: return ([copy retain]); >>> >>> Yes, if you're really still not

NSCalendar and NSDates prior to October 15, 1582

2015-01-30 Thread Steve Mykytyn
The documentation for the Date and Time Programming Guide for iOS does not seem to be telling the truth, or perhaps I'm doing something wrong. From https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/DatesAndTimes/Articles/dtHist.html "The Julian to Gregorian Transition NSCale

Core Data concurrency during import of folder contents

2015-01-30 Thread Steve Mills
I'm trying to learn Core Data. I have a working document model hooked up to a table view (OS X). I have an import method that uses FSDirectoryEnumerator to add an object for each file in the folder. Oky doke! But that blocks for a few seconds while it loops. So I'm trying to make it threaded. On

Re: How to avoid user interaction in WebView

2015-01-30 Thread Kyle Sluder
On Jan 30, 2015, at 7:47 AM, Juanjo Conti wrote: > > Hi! This is my first email in this list. I'm working with Cocoa (using > Swift) on a Mac Os X screensaver. > > I'd like to use a WebView to show different web pages but I don't want the > user to be able to interact with the page. This is: no

Re: copyWithZone archive/unarchive

2015-01-30 Thread Kyle Sluder
On Jan 30, 2015, at 7:26 AM, Trygve Inda wrote: >> >>> On Jan 29, 2015, at 9:44 PM, Trygve Inda wrote: >>> >>> However, naming conventions expect copy to not >>> be autoreleased so should the above really be: >>> >>> return ([copy retain]); >> >> Yes, if you're really still not using ARC ;-)

[no subject]

2015-01-30 Thread Raglan T. Tiger
One last thing ... Exception Type:EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0020 VM Regions Near 0x20: --> __TEXT 00010ca2d000-00010ca2e000 [4K] r-x/rwx SM=COW /System/Library/StagedFrameworks/Safari/WebKit.f

Re: Program Crash

2015-01-30 Thread Cody Garvin
Heh probably shouldn't vent here if you don't expect any comments. Definitely not the place to start off topic convo. Regardless, zero issues over here with Safari as well. Report the crash to Apple with the data dump from the console. You could have a hard to find issue cropping up. It could

Re: Program Crash

2015-01-30 Thread Raglan T. Tiger
> On Jan 30, 2015, at 9:04 AM, Ronald Hofmann wrote: > > I asume you are using some extensions or/and Flash which are resposinble for > that. I know this sis off topic but it is just frustrating and I choose to vent. No flash, no extensions. Enough, no more comments. -rags __

Re: Program Crash

2015-01-30 Thread Ronald Hofmann
What are you talking about. I'm using Safari very often and can't rember the last time I had a crash. I asume you are using some extensions or/and Flash which are resposinble for that. Regards Ronald Hofmann --- > Am 30.01.2015 um 16:43 schrieb Raglan T. Tiger : > > If my products crashed 50

How to avoid user interaction in WebView

2015-01-30 Thread Juanjo Conti
Hi! This is my first email in this list. I'm working with Cocoa (using Swift) on a Mac Os X screensaver. I'd like to use a WebView to show different web pages but I don't want the user to be able to interact with the page. This is: no clicking, no scrolling, no keystrokes firing events in the web

Program Crash

2015-01-30 Thread Raglan T. Tiger
If my products crashed 50 times a day like Safari I would be out of business. Apple records record profits and puts out a piece of shite application, Safari. -rags ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin re

Re: copyWithZone archive/unarchive

2015-01-30 Thread Trygve Inda
> >> On Jan 29, 2015, at 9:44 PM, Trygve Inda wrote: >> >> However, naming conventions expect copy to not >> be autoreleased so should the above really be: >> >> return ([copy retain]); > > Yes, if you're really still not using ARC ;-) > > —Jens I am not using ARC - this is a large project t