Re: Screen saver settings don't take effect (again) under Sonoma

2023-10-12 Thread Michael Diehr via Cocoa-dev
There's an active discussion rying to reverse-engineer the screen saver settings in Sonoma over on GitHub: https://github.com/JohnCoates/Aerial/issues/1332 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Screensaver under 13.3 using multiple monitors appears funny

2023-04-22 Thread Michael Brian Bentley via Cocoa-dev
I think macOS 13.3 screen saver is easily confused. I'm using the stock photo wall saver on a 2019 Intel 32GB 2TB MBP with 3 4k monitors. (Which really slows a wired network connection down!) At first (just after the update), one monitor said "No Pictures" while the other two showed

Re: OS/X Java native bug

2023-03-19 Thread Michael Hall via Cocoa-dev
> On Mar 19, 2023, at 1:02 PM, Alan Snyder wrote: > > Your comments don’t make sense to me. > > You either post an event to run the code on the main thread or, if you are on > the main thread, you run the code directly. > > Running the code directly is what invoking a block does. > > How

Re: OS/X Java native bug

2023-03-19 Thread Michael Hall via Cocoa-dev
> On Mar 19, 2023, at 11:48 AM, Michael Hall wrote: > > > >> On Mar 19, 2023, at 10:50 AM, Alex Zavatone wrote: >> >> Would it make sense to intentionally cause this in one test case and then >> try dispatching on another queue at an intention

Re: OS/X Java native bug

2023-03-19 Thread Michael Hall via Cocoa-dev
> On Mar 19, 2023, at 10:50 AM, Alex Zavatone wrote: > > Would it make sense to intentionally cause this in one test case and then try > dispatching on another queue at an intentional lower priority? > > I’m just brainstorming here to create a specific case that we know causes it, > then

Re: OS/X Java native bug

2023-03-19 Thread Michael Hall via Cocoa-dev
> On Mar 19, 2023, at 10:37 AM, Alex Zavatone wrote: > > So while I am waiting for my coffee to actually start working, which > approaches do we think make sense here? > > When starting up, check if thread == main and if so, do one thing, else do > the other? > > If this is correct, what

Re: OS/X Java native bug

2023-03-19 Thread Michael Hall via Cocoa-dev
> On Mar 18, 2023, at 4:46 AM, Michael Hall wrote: > >> On Mar 17, 2023, at 7:49 AM, Alan Snyder > <mailto:javali...@cbfiddle.com>> wrote: >> >> block() means invoke the block > > > Not exactly and it still seems unnecessary here. >

Re: OS/X Java native bug

2023-03-18 Thread Michael Hall via Cocoa-dev
> On Mar 18, 2023, at 4:46 AM, Michael Hall wrote: > > The main differences seeming to be that it takes a pass through the CFRunLoop > doing an invokeBlockCopy After seeing this (java_md_macosx.m JVMInit sameThread is true)… /* * We cannot use dispat

Re: OS/X Java native bug

2023-03-18 Thread Michael Hall via Cocoa-dev
> On Mar 17, 2023, at 7:49 AM, Alan Snyder wrote: > > block() means invoke the block Not exactly and it still seems unnecessary here. It appears to convert the block to a selector and then to invoke it. Eliminate the comments and NSLog’s and I think the following is equivalent and a bit

Re: OS/X Java native bug

2023-03-17 Thread Michael Hall via Cocoa-dev
> On Mar 17, 2023, at 7:49 AM, Alan Snyder wrote: > > block() means invoke the block > >> On Mar 17, 2023, at 5:34 AM, Michael Hall via Cocoa-dev >> wrote: >> >> >> >>> On Mar 17, 2023, at 6:51 AM, Michael Hall wrote: >>&g

Re: OS/X Java native bug

2023-03-17 Thread Michael Hall via Cocoa-dev
> On Mar 17, 2023, at 6:51 AM, Michael Hall wrote: > >> > > Sorry, I looked at your link and am still not sure this is correct if you are > already on the main thread. > Searching shows this used enough places you would think it has to be correct. Again, I guess

Re: OS/X Java native bug

2023-03-17 Thread Michael Hall via Cocoa-dev
> On Mar 17, 2023, at 6:31 AM, Michael Hall wrote: > > > >> On Mar 17, 2023, at 4:07 AM, Saagar Jha wrote: >> >> The implementation of -[ThreadUtilities performOnMainThreadWaiting:block:] >> does the right thing here, which is calling the block

Re: OS/X Java native bug

2023-03-17 Thread Michael Hall via Cocoa-dev
> On Mar 17, 2023, at 4:07 AM, Saagar Jha wrote: > > The implementation of -[ThreadUtilities performOnMainThreadWaiting:block:] > does the right thing here, which is calling the block directly if it’s > already running on the main thread: >

OS/X Java native bug

2023-03-17 Thread Michael Hall via Cocoa-dev
This was just brought to my attention on a java mailing list. An option was added to java startup options on OS/X -XstartOnFirstThread so the code starts on the main Appkit thread. Currently if a java Swing application starts with that option it hangs.

Re: fileManagerWithAuthorization:

2021-03-14 Thread Michael Tsai via Cocoa-dev
I think you need to apply to Apple and get a provisioning profile, even if the app isn't sandboxed: https://developer.apple.com/forums/thread/653890 --Michael > On Mar 14, 2021, at 5:43 AM, Allan Odgaard via Cocoa-dev > wrote: > > I’ve tried something like the code below to

NSAlert runModal in outlineView:acceptDrop crashes with may not be invoked inside of transaction begin/commit pair

2020-10-31 Thread Michael Kloske via Cocoa-dev
not help. Has anyone any idea what the problem is? Best regards, Michael Kloske ___ 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: Question about Info.plist's

2020-08-19 Thread Michael Hall via Cocoa-dev
> On Aug 19, 2020, at 10:04 PM, Ben Kennedy wrote: > > >> On 19 Aug 2020, at 7:45 pm, Michael Hall via Cocoa-dev >> wrote: >> >> Something else I’m curious about is doesn’t this somehow invalidate any >> application signing that’s been done? > &g

Re: Question about Info.plist's

2020-08-19 Thread Michael Hall via Cocoa-dev
> On Aug 19, 2020, at 9:04 PM, Michael Hall wrote: > > > I’m not familiar with the Plistbuddy that’s been mentioned. I see that is in fact builtin. Wasn’t aware. Something else I’m curious about is doesn’t this somehow invalidate any application signing that

Re: Question about Info.plist's

2020-08-19 Thread Michael Hall via Cocoa-dev
> On Aug 19, 2020, at 11:07 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > Question: > > Is there a way to use a key/value that was defined earlier in the plist file > to define a value for a later key? > Maybe off-topic but this used to be supported for Java applications for pre-set

Re: Drag and Drop of NSTokenField stopped working in Catalina

2020-07-01 Thread Michael Kloske via Cocoa-dev
]; } This works for me. Thanks a lot. Best regards, Michael Kloske ___ 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

Re: Drag and Drop of NSTokenField stopped working in Catalina

2020-06-30 Thread Michael Kloske via Cocoa-dev
t nil, it would also work in my application but then I would miss my internal data. —Michael Kloske ___ 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 co

Drag and Drop of NSTokenField stopped working in Catalina

2020-06-30 Thread Michael Kloske via Cocoa-dev
rd will have two items instead of one. Has anyone any idea how to fix that issue? Best regards, Michael ___ 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

Re: Screensaver can capture mouse events under Catalina

2020-05-25 Thread Michael Diehr via Cocoa-dev
> On May 25, 2020, at 12:43 PM, Gabriel Zachmann wrote: > [...] > Unfortunately, it seems that I still cannot get key events. > Best regards, Gabriel I tried what feels like a thousand different variations and could not get key events under Catalina screensaver. If you can figure it out,

Re: Screensaver can capture mouse events under Catalina

2020-05-25 Thread Michael Diehr via Cocoa-dev
Great question - I'm the author of iScreensaver. Although our editor app is primarily built using Xojo, the actual .saver file is now a proper Swift .saver file built using Xcode, which internally runs a JavaScript/HTML rendering engine in a WKWebView. I mention this detail in case it's

Re: Thoughts on Cocoa

2019-10-04 Thread Michael Hall via Cocoa-dev
> On Oct 4, 2019, at 2:41 PM, Lars C. Hassing via Cocoa-dev > wrote: > > > On 4 Oct 2019, at 21.00, Jens Alfke wrote: > > The people I hear complaining about this are those who, like you, didn't move > to Cocoa. Carbon was a _temporary_ transition API*. It was necessary when Mac > OS X

Re: Scrolling differences when using Trackpad or Mouse-Wheel

2018-06-21 Thread Michael Starke
processed differently than scrolling on the trackpad. - Michael > On 21. Jun 2018, at 02:01, Jack Brindle wrote: > > Logitech mice don’t have drivers for the Mac these days, but the Options > software can add interesting capabilities. It is not required for general > use, but is requi

Re: Scrolling differences when using Trackpad or Mouse-Wheel

2018-06-21 Thread Michael Starke
___H i c k n H a c k S o f t w a r e G m b H geschäftsführer - maik lathan | andreas reischuck | michael starke bayreuther straße 32 01187 dresden amtsgericht dresden HRB 30351 sitz - dresden ___ Cocoa-de

Re: Scrolling differences when using Trackpad or Mouse-Wheel

2018-06-20 Thread Michael Starke
I'm providing a development snapshot that is build using travis and I did not want to vent my certificate to any third parties even if the setup is considered save. Official release (like 0.7.3) are properly signed. - Michael > On 20. Jun 2018, at 17:24, Richard Charles wr

Re: Scrolling differences when using Trackpad or Mouse-Wheel

2018-06-20 Thread Michael Starke
to find some more mice from different vendors to see if this makes any difference. And I'll run Instruments to see if I can identify the bottleneck. - Michael > On 20. Jun 2018, at 06:03, Jack Brindle wrote: > > What’s the mouse? It’s not from Apple, so what is it, how is it connected an

Scrolling differences when using Trackpad or Mouse-Wheel

2018-06-19 Thread Michael Starke
is NSView based - Michael ___m i c h a e l s t a r k e geschäftsführer HicknHack Software GmbH www.hicknhack-software.com ___k o n t a k t +49 (170) 3686136 cont...@hicknhack.com ___H i c k n H a c k S o f t w a r e G m b H

How to include UIColor picker in code-completion in Swift playgroundbook

2018-02-13 Thread John Michael Zorko
Hello, all … A friend and I are creating a playgroundbook that allows users to write code to control, among other things, the color of an external device. We would like to use the UIColor picker box in the code-completion bar above the keyboard, but so far, the only way we know how to include

Re: iOS Drag and Drop

2017-06-13 Thread Michael Dautermann
> On Jun 13, 2017, at 9:11 AM, Dave wrote: > > Hi, > > Can someone point me to some documentation of Drag and Drop for iOS please? > > I done loads of searches but can’t find a brief intro and some Sample Code. > > I’ve not been working on iOS for some time and

Dispatch Sources

2016-12-10 Thread Michael Hall
3-SW22 <https://developer.apple.com/library/content/documentation/General/Conceptual/ConcurrencyProgrammingGuide/GCDWorkQueues/GCDWorkQueues.html#//apple_ref/doc/uid/TP40008091-CH103-SW22> Michael Hall ___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: kqueue

2016-11-24 Thread Michael Hall
one had any thoughts on why java going into a wait would cause the kqueue to stop posting events? Or would know of general reasons why kqueue would stop posting events? I did a lot of googling on that the last time around but pretty much came up empty. Michael Hall _

Re: kqueue

2016-11-24 Thread Michael Hall
specific conditions and output. > > This made it convenient to monitor the patient (the app) and keep track of > specific conditions on a per window (per readout) basis. Not sure I’m following. I can output messages fine. But I’m not sure what I can put in them that will tell me anyt

kqueue

2016-11-24 Thread Michael Hall
) spinning wheels back at square 1 again. Michael Hall ___ 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

[NSEditorRegistration sidetrack] observeValueForKeyPath:... called too often in macOS 12

2016-10-19 Thread Michael Starke
www.hicknhack-software.com ___k o n t a k t +49 (170) 3686136 cont...@hicknhack.com ___H i c k n H a c k S o f t w a r e G m b H geschäftsführer - maik lathan | andreas reischuck | michael starke bayreuther straße 32 01187 dresden

NSSecureTextField and Umlaute and the likes

2016-09-29 Thread Michael Starke
with anything and trying to mess with the NSSecureTextView did not work in the past for me trying to fix another problem. Has anyone encountered and possibly solved the issue? Thanks in advance, Michael ___m i c h a e l s t a r k e geschäftsführer HicknHack Software GmbH

Re: Do Debug Apps Expire on iOS?

2016-07-22 Thread Michael David Crawford
Debug it some other way than with Xcode. Possibly you have a serious bug, but running under the debugger alters something so that the bug isn't stimulated. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Prioritize my own app's disk access

2016-07-05 Thread Michael David Crawford
If it's a dedicated workstation, it should be OK to require a RAID 0. That won't affect anyone's priority, but all disk I/O will be divided among two or more disks. Alternatively, dedicate a single drive only to video, with your other drive being for everything else. Michael David Crawford

Re: Properties: A question of style

2016-06-15 Thread Michael Starke
or if > both are custom both. Or I just "held it wrong" > > ___m i c h a e l s t a r k e > geschäftsführer > HicknHack Software GmbH > www.hicknhack-software.com > > ___k o n t a k t > +49 (170) 36 86 1 36 > cont...@hicknhack.com > > _

Re: Properties: A question of style

2016-06-14 Thread Michael Starke
setter or the getter or if both are custom both. Or I just "held it wrong" ___m i c h a e l s t a r k e geschäftsführer HicknHack Software GmbH www.hicknhack-software.com ___k o n t a k t +49 (170) 36 86 1 36 cont...@hicknhack.com ___H i c k n H a c k S o f t w a r e G

Re: DNS resolution for apps vs Terminal?

2016-06-14 Thread Michael Nickerson
> On Jun 14, 2016, at 5:11 AM, Rick Mann wrote: > > Just now Safari stopped being able to load facbook.com. So did Chrome. Both > reported DNS failures. > > But dig on the command line, and curl, both succeed. > > How are these two domains different? > Safari and

Re: Simplest way to generate audio tones?

2016-06-03 Thread Michael David Crawford
/BirthCry.cpp Michael David Crawford, Baritone mdcrawf...@gmail.com One Must Not Trifle With Wizards For It Makes Us Soggy And Hard To Light. On Sun, May 29, 2016 at 10:10 AM, Jens Alfke <j...@mooseyard.com> wrote: > >> On May 28, 2016, at 8:24 PM, Graham Cox <graham@

Re: NSDocument saving query (SOLVED)

2016-04-14 Thread Michael McLaughlin
016, at 3:09 PM, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Apr 14, 2016, at 11:55 , Michael McLaughlin <mmclaughl...@cox.net > <mailto:mmclaughl...@cox.net>> wrote: >> >> What is the recommended way to capture a Cance

NSDocument saving query

2016-04-14 Thread Michael McLaughlin
might Cancel. In this case, I would like to close the window and discard the new document. My problem is that saveDocumentAs returns void, not BOOL indicating success (or not). What is the recommended way to capture a Cancel in this case? Any sample code available? Thanks. -- Michael

Re: Apple Bug no response

2016-03-09 Thread Michael David Crawford
I have a bug in Apple's sample code that would be a trivial fix, that has been open for eight years. By contrast I've reported a few kernel bugs. Each was fixed in the very next build. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: [OT] Forums for Web Development?

2016-02-15 Thread Michael David Crawford
Soylent News, http://soylentnews.org/ Submit an "Ask Soylent News" story. If you ask your questions intelligently they'll run your story. Many Soylentils are web app coders. Michael David Crawford, Baritone mdcrawf...@gmail.com One Must Not Trifle With Wizards For It Make

Re: Secure coding NSArray

2016-02-15 Thread Michael Starke
Hi Quincey, I am unable to reproduce your exception. Is this something related to swift interoperability? In pure objective-c environments it seems to work fine, that is, securely decode without an exception! - Michael > On 15 Feb 2016, at 12:43, Dave <d...@looktowindward.com> wrote

Re: TreeController and "selection" Binding

2016-02-12 Thread Michael de Haan
> On Feb 11, 2016, at 4:11 PM, Quincey Morris > wrote: >> >> Ideally, I would like to bind from IB the selection of the TreeController to >> the local variable, but I cannot find a way to do this. Is this possible? > > It’s not clear what you’re saying.

Re: TreeController and "selection" Binding

2016-02-12 Thread Michael de Haan
> On Feb 12, 2016, at 2:16 PM, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Feb 12, 2016, at 14:00 , Michael de Haan <m...@comcast.net > <mailto:m...@comcast.net>> wrote: >> >> I could not get from that binding to th

Re: TreeController and "selection" Binding

2016-02-12 Thread Michael de Haan
> On Feb 12, 2016, at 2:52 PM, Quincey Morris > wrote: > > The difference between binding in IB and binding using code (if that’s what > you’ve been doing) is that with code you have a freer choice of binding > targets. To do the equivalent in IB, you

Re: TreeController and "selection" Binding

2016-02-12 Thread Michael de Haan
> On Feb 12, 2016, at 9:16 AM, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Feb 12, 2016, at 07:04 , Michael de Haan <m...@comcast.net > <mailto:m...@comcast.net>> wrote: >> >> Ideally, I would like to omit the outl

Re: Cocoa-dev Digest, Vol 13, Issue 82

2016-02-12 Thread Michael Swan
Right before you call reload data log the current thread [NSThread currentThread]; If it says anything other than main that's the issue. It happens all the time since it's easy to forget that whatever callback tells you about the added data ends up coming in on the background. Hope that helps,

TreeController and "selection" Binding

2016-02-11 Thread Michael de Haan
I have what I assume is a standard setup. A treeController managing an Outline View. A textView acts as a source for a regex Search. All works as expected. The resulting matches are displayed in the outline view. As I select a row in the outline view, I highlight the matched text in the

Re: Strange Analyser Warning/Error

2016-02-08 Thread Michael Babin
> On Feb 8, 2016, at 7:15 AM, Dave wrote: > > Look at this code: > > myUserInfo = [self.pUserIDDict objectForKey: theUserInfo.pUserID]; > if (myUserInfo != nil) > { > LTWAssertAlways(@"myUserInfo - Dupe ID!!"); > } > > if (theUserInfo.pUserID

Re: mmap quiet failure - all reads are 0x00

2016-02-05 Thread Michael David Crawford
. But don't just focus narrowly on the mmap itself. Michael David Crawford, Baritone mdcrawf...@gmail.com One Must Not Trifle With Wizards For It Makes Us Soggy And Hard To Light. On Fri, Feb 5, 2016 at 4:36 PM, Jens Alfke <j...@mooseyard.com> wrote: > >> On Feb 5, 2016, at 10:09

Re: catching statuses of lights

2016-01-29 Thread Michael David Crawford
color filters might simplify the problem. Also are the lights in a fixed location? Do you plan to let your iDevice do the driving? ;-D Michael David Crawford, Baritone mdcrawf...@gmail.com One Must Not Trifle With Wizards For It Makes Us Soggy And Hard To Light. On Fri, Jan 29, 2016

Re: Stopping the initial storyboard viewcontroller being created

2015-11-26 Thread Michael Babin
> On Nov 26, 2015, at 7:27 AM, Roland King wrote: > > I would like to create the main viewcontroller in my > applicationDidFinishLaunching:withOptions: method (iOS) instead of having the > storyboard one created automatically. > > I’m doing this in order to change behaviour

xcodebuild and PMD

2015-11-26 Thread John Michael Zorko
Hello, all … I’m exploring how to plug our iOS builds into our existing PMD-based code sniffing tool. We’re using Xcode 7.1.1. Is there a way that I can process xcodebuild’s output (or hook into the Xcode analyzer output) into a PMD XML file? I’m aware of OCLint, but we also have some Swift

Re: xcodebuild and PMD

2015-11-26 Thread John Michael Zorko
> On Nov 26, 2015, at 12:21 PM, Alex Zavatone wrote: > > What’s PMD? https://pmd.github.io ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: Cocoa-dev Digest, Vol 12, Issue 656

2015-11-25 Thread Michael Domino
e doc says: - endSheet: Ends a document-modal session and dismisses the specified sheet. Declaration OBJECTIVE-C - (void)endSheet:(NSWindow *)sheetWindow Parameters sheetWindow The window object that represents the sheet to be dismissed. Best, Michael > > Message: 1 > Date: Wed, 25

Re: Stack View Question

2015-11-12 Thread Michael de Haan
>> >> >>> >>> Because there are 5 buttons in the top and bottom rows, and 3 in the >>> vertical left and right rows, the spacing in the vertical stack views are >>> not as “tight” as I want it to be. >>> >>> What I want is this. Lets call the space between the buttons “Empty Space" >>>

NSUserDefaults Bindings Reset

2015-11-01 Thread Michael de Haan 
I have made a test Project to understand resetting UserDefaults. A label’s value is bound to the shared UserDefaults in the UI, and works as expected when the Defaults are updated @IBAction fun changeMeaningOfLife……... let meaning = Int(arc4random() % 99)

Dictionary and Range

2015-10-27 Thread Michael de Haan 
I know it is possible to do this, let isolated = Range(start: 20, end: 25) let k_Index = ["isolatedTstm":isolated] But what i really want is this, let foo = <30 and bar = [key:foo] Is that possible? Thanks. ___ Cocoa-dev mailing list

Re: Best Advice for accessing App Delegate's Managed Object Context

2015-10-18 Thread Michael de Haan 
Well, there is something to be said for simplifying the code!!! I got rid of all the notification code, and substituted this in each controller that needed access to the managedObjectContect > Just show me how to do that in Swift :) lazy var managedObjectContext:NSManagedObjectContext! = {

Re: Best Advice for accessing App Delegate's Managed Object Context

2015-10-18 Thread Michael de Haan 
> > It looks to me like you are instantiating a window controller, not a split > view controller. But that’s a better idea anyhow. Correct… the WindowController “contains” the SplitViewController > >> > > By “context”, do you mean managed object context? correct again. > Alarm

Best Advice?

2015-10-18 Thread Michael de Haan 
I am using a separate, second “standAlone" Window to display a SplitViewController. Design is StoryBoard, for an OS X application. From appDelegate, I instantiate the SplitViewController in “applicationDidFinishLaunching" let storyBoard = NSStoryboard(name: "Main", bundle: nil)

Re: Dead Reckoning

2015-10-09 Thread Michael de Haan 
Thank you for all your input. I made one small little change to accept time input in seconds. >> let secondsToHours = 2.778E-4 .. let rDistance = ((speed * time * knotsToMeters * secondsToHours) / earthRadius) << > On Oct 9, 2015, at 9:33 PM, Rick Mann

Re: Dead Reckoning

2015-10-09 Thread Michael de Haan 
> > I am trying to derive a DR fix from an initialized CLLocation. > > Like this. (Playground) > > let fixTime = NSDate(timeInterval: (1.00 * 60.00 * 60.00 * -1.00), > sinceDate: NSDate()) // one hour ago > let fixLocation = CLLocation(coordinate: >

Dead Reckoning

2015-10-08 Thread Michael de Haan 
I am trying to derive a DR fix from an initialized CLLocation. Like this. (Playground) let fixTime = NSDate(timeInterval: (1.00 * 60.00 * 60.00 * -1.00), sinceDate: NSDate()) // one hour ago let fixLocation = CLLocation(coordinate: CLLocationCoordinate2DMake(boatLocation.coordinate.latitude,

Re: Generics Question

2015-09-24 Thread Michael de Haan 
Nice… thank you Marco > On Jul 26, 2015, at 4:43 PM, Marco S Hyman wrote: > >> func genericFor(s:String) -> T { >> >> return T(s)! // error. ’T’ cannot be constructed because it has no >> accessible initializers >> } > > At compile time there is no way of determining

Re: OpenGL Vertical Syncing effect on run loops

2015-09-23 Thread Michael David Crawford
was devoted to back and forth context switches that did no other work of any sort. My current use of the display link resulted in a tenfold increase in performance. Michael David Crawford P.E., Consulting Process Architect mdcrawf...@gmail.com http://mike.soggywizard.com/ One Must Not Trifle

Re: iOS 9 or Watch App

2015-09-21 Thread Michael David Crawford
For me, it works OK to put the Xcode app bundles in folders: /Applications/Xcode_5/Xcode.app /Applications/Xcode_6/Xcode.app however you may only have one version of the command line tools installed in /usr/bin and the like. Michael David Crawford P.E., Consulting Process Architect mdcrawf

Generics Problem

2015-09-19 Thread Michael de Haan 
I am calling this function, func createMOforEntityName(entityName:String, context:NSManagedObjectContext, key:String, keyAttribute: U) -> (Bool, T) { guard let mo:T = self.moExistsWith(entityName, key:key, keyAttribute: keyAttribute) else { let

Re: Generics Problem

2015-09-19 Thread Michael de Haan 
> On Sep 19, 2015, at 1:46 PM, Jens Alfke wrote: > > >> On Sep 19, 2015, at 11:26 AM, Quincey Morris >> > > wrote: >> >> It looks like Swift is incapable of resolving the specialization of

Re: Is it possible to transfer data by using light

2015-09-18 Thread Michael David Crawford
personal phone. Modern Macs - to the best of my knowledge - provide trusted computing chips, on can access them from userspace with a modest bit of code. Michael David Crawford P.E., Consulting Process Architect mdcrawf...@gmail.com http://mike.soggywizard.com/ One Must Not Trifle

Re: Is it possible to transfer data by using light

2015-09-17 Thread Michael David Crawford
that modern computer user interfaces caused my seizure disorder as well as that of my cousin. Seizures are not otherwise found among any of our blood relatives. Have A Nice Day. Mike Michael David Crawford P.E., Consulting Process Architect mdcrawf...@gmail.com http://mike.soggywizard.com/ One

Re: Is it possible to transfer data by using light

2015-09-17 Thread Michael David Crawford
shades of grey could transmit more data while avoiding the stimulation of seizures. Michael David Crawford P.E., Consulting Process Architect mdcrawf...@gmail.com http://mike.soggywizard.com/ One Must Not Trifle With Wizards For It Makes Us Soggy And Hard To Light. On Thu, Sep 17, 2015 at 9

Re: Progress Bar Gripe

2015-09-09 Thread Michael David Crawford
ce Manager code. That the bug reports I file don't get fixed is what led me to abandon the Apple platform for Linux. I invite you to continue our friendly debate. Mike Michael David Crawford P.E., Consulting Process Architect mdcrawf...@gmail.com http://mike.soggywizard.com/ One Must Not Trif

Progress Bar Gripe

2015-09-08 Thread Michael David Crawford
gravation. Curmudgeonly Yours, Mike Michael David Crawford P.E., Consulting Process Architect mdcrawf...@gmail.com http://mike.soggywizard.com/ One Must Not Trifle With Wizards For It Makes Us Soggy And Hard To Light. ___ Cocoa-dev mailing list (Coco

Re: Puzzling memory creep

2015-09-04 Thread Michael David Crawford
. Michael David Crawford P.E., Consulting Process Architect mdcrawf...@gmail.com http://mike.soggywizard.com/ One Must Not Trifle With Wizards For It Makes Us Soggy And Hard To Light. On Fri, Sep 4, 2015 at 9:13 AM, <dangerwillrobinsondan...@gmail.com> wrote: > So don't cre

Re: How to terminate an NSTask whenever my app terminates?

2015-08-31 Thread Michael David Crawford
On the UNIX command line "nohup" prevents children from being killed when the parent exits. If you want to manually start a daemon: $ nohup mydaemon & Then you can log out and it keeps running. -- Michael David Crawford P.E., Consulting Process Architect mdcrawf...@

Re: Crash help?

2015-08-20 Thread Michael David Crawford
not have found the crash we're discussing but it will find many others by the time you ship. Also assertions are more effective than comments for documenting APIs because one is forced to maintain them along with the rest of the code. - Mike -- Michael David Crawford P.E., Consulting Process

Re: Completely baffled by NSTabViewController + Autolayout

2015-08-17 Thread Michael David Crawford
competitors. (Soggy Wizard is a brand-new domain however I expect to start my web server by tomorrow afternoon or so.) Have A Nice Day. Michael David Crawford P.E., Consulting Process Architect http://mike.soggywizards.com/ mdcrawf...@gmail.com One Must Not Trifle With Wizards For It Makes Us

Request iOS setting to disable ALL UI animation.

2015-08-11 Thread Michael David Crawford
Miguel de la Chula Vista http://www.warplife.com/mdc/ mdcrawf...@gmail.com 53n7 fr0m my 1P4d. -- Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Every Deity Hath the Insight to Foretell the Future Yet G-d Almighty Himself

Re: Regarding these Olivia messages. Can we do something about the list security?

2015-07-31 Thread Michael David Crawford
requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/mdcrawford%40gmail.com This email sent to mdcrawf...@gmail.com -- Michael David Crawford

Re: Regarding these Olivia messages. Can we do something about the list security?

2015-07-30 Thread Michael David Crawford
Chris, Your old homey Mike suggests that cocoa-dev could use a little TLC. Mike On Thursday, July 30, 2015, Michael David Crawford mdcrawf...@gmail.com wrote: Internet Crime Complaint Center http://www.ic3.gov/complaint/default.aspx The CERT Division http://www.cert.org/ Forum

Re: Regarding these Olivia messages. Can we do something about the list security?

2015-07-30 Thread Michael David Crawford
subscription forms. I'll Send You My Bill In The Mail. Mike mdcrawf...@gmail.com -- Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Every Deity Hath the Insight to Foretell the Future Yet G-d Almighty Himself Possesseth Not the Power

Re: Generics Question

2015-07-26 Thread Michael de Haan 
What you really need to do depends on what you’re really trying to achieve. Sorry, it’s been a long day :-) I am really trying to understand this. So….. given this… and I think this will make sense now, * func intFor(s:String) - Int { return Int(s)! } func

Re: Generics Question

2015-07-26 Thread Michael de Haan 
that will return an Int, Double for a given string value, depending upon the input i.e. T On Jul 26, 2015, at 3:44 PM, Alan Westbrook void...@me.com wrote: I think you want genericIntFor() to return Int instead of T Alan On Jul 26, 2015, at 3:10 PM, Michael de Haan  m...@comcast.net

Generics Question

2015-07-26 Thread Michael de Haan 
I’m writing a coreData helper which will rely on Generics. Could I get some input? I have synthesized the problem down to this somewhat nonsensical code. From Playground: func intFor(s:String) - Int { return Int(s)! } func genericIntForT(s:String) - T { return

Re: Generics Question

2015-07-26 Thread Michael de Haan 
. That’s why I was asking about a more realistic example of the problem you’re trying to solve. Point taken. This was just a “trivial” … well it seems not that trivial…example to deepen my understanding of Generics. So, I thank you, and will repost with a more specific example if and when

Re: Cocoa Error Domain code symbols in Swift

2015-07-24 Thread Michael David Crawford
ones. -- Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Every Deity Hath the Insight to Foretell the Future Yet G-d Almighty Himself Possesseth Not the Power to Undo the Past. ___ Cocoa

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 Michael David Crawford
/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/mdcrawford%40gmail.com This email sent to mdcrawf...@gmail.com javascript:; -- Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Every Deity Hath

Question about enums

2015-07-17 Thread Michael de Haan 
I wonder if I can get some input as I seemed to have hit a wall in Swift, 2.0 My App uses structs and enums to hold the bulk of the data needed for it’s default values (probably over 95%). So, for example, enum Foo:String { case Bar = “Bar case Etc = “Etc case Etc_Etc = “Etc

Re: Question about enums

2015-07-17 Thread Michael de Haan 
property and that property could grow with customers input. You will still need a way to store the inputs - assuming you want to be able to persist the information. On Jul 17, 2015, at 12:53 PM, Michael de Haan  m...@comcast.net mailto:m...@comcast.net wrote: I wonder if I can get some

Re: Question about enums

2015-07-17 Thread Michael de Haan 
? enum Foo:String { case Bar = “Bar case Etc = “Etc case Etc_Etc = “Etc Etc case Custom(String) } On Fri, Jul 17, 2015 at 2:53 PM, Michael de Haan  m...@comcast.net mailto:m...@comcast.net wrote: I wonder if I can get some input as I seemed to have hit a wall in Swift

Re: Question about enums

2015-07-17 Thread Michael de Haan 
Could you elaborate on the persistence aspect…as this is what I will be needing. Thanks On Jul 17, 2015, at 2:04 PM, iseecolors iseecol...@rsqrdc.us wrote: As long as you only need one customer defined enum and it is not expected to persist, than this will work. On Jul 17, 2015, at

Re: Question about enums

2015-07-17 Thread Michael de Haan 
Quincey and Stephen Thank you for your great input. And..yes..it does compile!!! :-) On Jul 17, 2015, at 1:57 PM, Stephen J. Butler stephen.but...@gmail.com wrote: Or what about this? Tested this time... enum Foo { case Bar case Etc case Etc_Etc case Custom(String)

  1   2   3   4   5   6   7   8   9   10   >