Re: Free trial period for apps in Mac App Store (?)

2020-09-02 Thread Dave via Cocoa-dev
Hi, The “Light” version doesn’t take much more effort to support since its built from the same source code. I actually found this the easiest and most straight forward way of doing it. Cheers Dave > On 1 Sep 2020, at 22:27, Gabriel Zachmann via Cocoa-dev > wrote: > >> Make a

Re: Free trial period for apps in Mac App Store (?)

2020-09-01 Thread Dave via Cocoa-dev
functionality or both. When the time expires or the user decides they want more functionality they click a link to the App in the AppStore. The other option is to use “In App Purchases” to upgrade the functionality. Hope this helps. Cheers Dave > On 27 Aug 2020, at 11:39, Gabriel Zachmann

Re: NSTimer +timerWithTimeInterval:

2020-05-04 Thread Dave via Cocoa-dev
Hi, I’d try this: Make a method called setupTimer with the code below. Then in applicationDidFinishLaunching call performSelector: setupTimer with a delay of (say 5 seconds). Just to see if it changes anything…. Cheers Dave > On 29 Apr 2020, at 23:35, Carl Hoefs via Cocoa-dev >

Re: [OT] NSTimer +timerWithTimeInterval:

2020-05-04 Thread Dave via Cocoa-dev
Yes, that’s correct, nothing wrong with a method beginning with new as long as it follows the rules, I use it all the time. I’m not sure if it matters at all with ARC, but I stick by the rules anyway. Cheers Dave > On 30 Apr 2020, at 00:27, Sandor Szatmari via Cocoa-dev > wrote: >

Re: Open a panel in secondary thread?

2020-03-24 Thread Dave via Cocoa-dev
Hi, You may want to call performSelectorOnMainThread and pass YES as the wait until done flag. Cheer Dave > On 21 Mar 2020, at 20:05, Gabriel Zachmann via Cocoa-dev > wrote: > > Is it possible to open an NSOpenPanel in a secondary thread? > > I crea

Re: applicationDidFinishLaunching not being called

2020-03-09 Thread Dave via Cocoa-dev
Look at the Application Object in the Workspace/NIB file, is the class AppDelegate? If not it should be! Do you have an AppDelegate in the project/target and is the correct target set for it? BTW, these questions are better posted to the Xcode list. All the Best Dave > On 9 Mar 2020, at

Re: Sharing NIB/XIB between different apps?

2020-03-09 Thread Dave via Cocoa-dev
, but the docs are pretty good. The best way to find out more, is to find a Sample project that uses a Workspace and go from there. Hope this helps Dave > On 6 Mar 2020, at 16:19, Steve Mills via Cocoa-dev > wrote: > >> On Mar 6, 2020, at 09:04, Gabriel Zachmann via Cocoa

Re: Sharing code between screensaver and regular app

2020-03-02 Thread Dave via Cocoa-dev
are the same too. Ether add the elements needed yourself or copy the existing storyboard/nib(s) rename and add to the new project. All the Best Dave > On 2 Mar 2020, at 12:36, Gabriel Zachmann wrote: > > Thanks a lot for your response! > >> >> File/New Project - Se

Re: Sharing code between screensaver and regular app

2020-03-02 Thread Dave via Cocoa-dev
as normal. All the Best Dave > On 1 Mar 2020, at 23:26, Gabriel Zachmann via Cocoa-dev > wrote: > > I am trying to replicate what this guy suggests: > > https://medium.com/better-programming/how-to-make-a-custom-screensaver-for-mac-os-x-7e1650c13bd8 > under section

Re: Best Xcode machine mid-2019?

2019-06-28 Thread Dave Fernandes via Cocoa-dev
Not a comprehensive list, but a start... https://github.com/ashfurrow/xcode-hardware-performance > On Jun 28, 2019, at 2:02 PM, Steve Mykytyn via Cocoa-dev > wrote: > > My main Xcode machine is a late 2013 27-inch iMac, 24GB RAM, 3.5 GHz Core > i7 with 500GB SSD. > > It works fine, but I'm

Re: NSManagedObject.managedObjectContext is nil???

2019-03-27 Thread Dave Fernandes
Just to clarify, the moc exists, but the reference to it is nil? Or has the moc, itself, been deallocated? > On Mar 27, 2019, at 3:40 PM, Rick Mann wrote: > > This is proving very hard to diagnose, as it doesn't always happen. I tried > observing -managedObjectContext, but it never gets

Re: Need a direction. App crash in CoreData while loading a window's nib

2018-11-04 Thread Dave Fernandes
> On Nov 4, 2018, at 2:24 PM, Motti Shneor wrote: > > Hi Dave and thanks for the reply. > > As you can see in the stack - there isn’t actually any “code” per-se that > runs at that time. Here is the actual method that fails: > > As for modifying the persistent

Re: Need a direction. App crash in CoreData while loading a window's nib

2018-11-04 Thread Dave Fernandes
Does your code modify anything in the persistent store during loading (NSManagedObjectContextDidChangeNotification)? Maybe it is rounding some values for display? This might cause infinite recursion with bindings. > On Nov 4, 2018, at 2:42 AM, Motti Shneor wrote: > > Thanks Richard. > > The

Re: NSManagedObjectContext's undoManager is nil on macOS

2018-09-06 Thread Dave Fernandes
property with your own > NSUndoManager after you’ve initialized the context. > > - Jeff > >> On Sep 5, 2018, at 7:33 PM, Dave Fernandes > <mailto:dave.fernan...@utoronto.ca>> wrote: >> >> The docs say: >> "In macOS, a context provides an undo

NSManagedObjectContext's undoManager is nil on macOS

2018-09-05 Thread Dave Fernandes
The docs say: "In macOS, a context provides an undo manager by default; on iOS, the undo manager is nil by default.” However, I am finding on macOS 10.13.6, the undoManager is always nil when creating a MOC. Is this new behavior expected for High Sierra, or is it a bug?

Re: Crashes inside CFStringDeallocate

2018-06-10 Thread Dave
Override the dealloc method and log when its called - its probably being over-released! All the Best Dave > On 8 Jun 2018, at 01:23, Jens Alfke wrote: > > > >> On May 29, 2018, at 7:39 AM, Alastair Houghton >> wrote: >> >> There’s clearly some kind

Re: Deleting files extremely slow since OSX High sierra

2018-04-25 Thread Dave
> On 25 Apr 2018, at 14:43, Steve Mills wrote: > > On Apr 25, 2018, at 08:32:14, Vojtěch Meluzín > wrote: >> >> Thanks Mike, i'll probably try. I am reluctant to do that, because api is >> api and apple forcing devs to change stuff all the time

[OT] Experienced Freelance Mac and iOS Developer available

2018-04-25 Thread Dave
for less than the market rate in return for this flexibility. If you’d like to see my CV/Resume please drop me a line privately. All the Best Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Deleting files extremely slow since OSX High sierra

2018-04-23 Thread Dave
> >> Recently I reported a text failure in Mail, added instructions and a sample >> to reproduce it. They reported it fixed. I spent my time to check on the >> latest Mac OS and it’s not fixed. I marked the bug as Still Open As >> Written. Nothing’s been done about it since. My time has

How to Correctly Add subviews considering auto layout

2017-06-29 Thread Dave
t “newGame” is called from “viewDidAppear:”, this works well BUT you see an annoying flicker when the View Controller first opens. Any advice or help on this would be greatly appreciated. All the Best Dave -(void) viewWillAppear:(BOOL) theAnimateFlag { [super viewWillAppear:theAnimateFla

Re: file encription/decriptoin iOS

2017-06-29 Thread Dave Fernandes
gt; wrote: > > >> On Jun 28, 2017, at 8:04 PM, Dave Fernandes <dave.fernan...@utoronto.ca >> <mailto:dave.fernan...@utoronto.ca>> wrote: >> >> So everything is protected by the iCloud Drive service key, but what does >> “which is then stored with the us

Re: file encription/decriptoin iOS

2017-06-28 Thread Dave Fernandes
torage. So everything is protected by the iCloud Drive service key, but what does “which is then stored with the user’s iCloud account” mean? Is it stored on the device or in iCloud? That makes all the difference. - Dave ___ Cocoa-dev mailin

Re: Help with Storyboard Problem

2017-06-20 Thread Dave
> On 19 Jun 2017, at 22:31, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Jun 19, 2017, at 11:24 , Dave <d...@looktowindward.com > <mailto:d...@looktowindward.com>> wrote: >> >> I’ve tried using Segues but can’t get that

Re: Help with Storyboard Problem

2017-06-20 Thread Dave
, it shows these Segue’s as “Show (Deprecated)” but I can find no more info about it. All the Best Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the modera

Re: Help with Storyboard Problem

2017-06-19 Thread Dave
ell me how to present the view controller on the screen I’d be really grateful. All the Best Dave > On 19 Jun 2017, at 20:24, Dave <d...@looktowindward.com> wrote: > > XCode 8.3.3. > > Hi All, > > I’m using storyboards on an iOS project and can’t seem to get it to w

Converting a Storyboard into separate NIBs.

2017-06-19 Thread Dave
if this is an easy process or not? I mean can I just copy+paste from the Storyboard into a NIB file or better still is there a way to export to a NIB? All the Best Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Help with Storyboard Problem

2017-06-19 Thread Dave
I do this? The documentation is sooo poor that I just can’t find anything that is of help. All the Best Dave ___ 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

Re: iOS Drag and Drop

2017-06-14 Thread Dave
Thanks a Million! All the Best Dave > On 14 Jun 2017, at 16:34, David Brittain <websi...@paperetto.com> wrote: > > The resources tab for each session has downloadable content. e.g. for > "Introducing Drag and Drop" > https://developer.app

Re: iOS Drag and Drop

2017-06-14 Thread Dave
I’m only on XCode 8.3.2 and I can’t update at the moment because I have a VERY slow and flakey Internet Connection. Is there nothing I can just download? It seems to me there used to be loads of documents telling you have to do this, but they all seem to have disappeared? All the Best Dave

Re: iOS Drag and Drop

2017-06-13 Thread Dave
to keep on stopping a video and then doing a bit in XCode. I’d much rather a simple Sample App and/orDrag and Drop Programming Guide type document. I seem to remember a document like that a when I was working on iOS before, but I can’t find it or anything like it anymore….. Cheers Dave

iOS Drag and Drop

2017-06-13 Thread Dave
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 things seem to have changed quite a lot. Cheers Dave

Problem with Seque's

2017-06-09 Thread Dave
oards there are crashes all over the place and I’m beginning to wish I’d not used them and just stuck to NIB files. Is there anyway to export View Controllers from a Storyboard file into a NIB file? Thanks a lot All the Best Dave ___ Cocoa-dev ma

Drawing a 5 Sided Star Shape

2017-06-02 Thread Dave
a decent looking star I’d be really grateful. Thanks a lot All the Best Dave ___ 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

Auto Layout Question

2017-05-24 Thread Dave
rying to prepare a demo for tomorrow afternoon and it would be really great if I could show this displaying correctly. All the Best Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

Re: Autolayout Problem/Question

2017-05-22 Thread Dave
this with one set of constraints or is it better to have two separate View Hierarchies and switch between them in code? All the Best Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

View Controllers, Views and Storyboards

2017-05-22 Thread Dave
hierarchy as the constraints clash. Any ideas on how to achieve this would be greatly appreciated. All the Best Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: NSBezierPath on iOS?

2017-05-22 Thread Dave
be setNeedsDisplayInRect instead of setNeedsDisplay, I changed this to: [self setNeedsDisplayInRect:self.frame]; Is this correct or should it be self.bounds? Thanks again. All the Best Dave > On 22 May 2017, at 13:02, Dave <d...@looktowindward.com> wrote: > > Thanks a lot! &g

Re: NSBezierPath on iOS?

2017-05-22 Thread Dave
Thanks a lot! All the Best Dave > On 22 May 2017, at 12:43, dangerwillrobinsondan...@gmail.com wrote: > > You want UI not NS BezierPath > > Sent from my iPhone > >> On May 22, 2017, at 19:23, Dave <d...@looktowindward.com >> <mailto:d...@looktowindward.com

Autolayout Problem/Question

2017-05-22 Thread Dave
this with Auto layout. Any help or suggestions greatly appreciated. All the Best Dave ___ 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

Re: NSBezierPath on iOS?

2017-05-22 Thread Dave
Sorry I should have said, this class is a Subview of UIView. I’m also getting an error on: [self setNeedsDisplay:YES]; I’m so rusty on iOS and I’m finding hard to remember the differences. All the Best Dave > On 22 May 2017, at 12:09, Dave <d...@looktowindward.com> wrote: > &g

NSBezierPath on iOS?

2017-05-22 Thread Dave
]; [NSBezierPath setDefaultLineWidth:self.pFrameLineWidth]; [NSBezierPath strokeRect:myRect]; } } It seems that NSBezierPath is not available on iOS, is there something I can use that is equivalent to the above on iOS? All the Best Dave

Re: Video Player Controls?

2017-05-17 Thread Dave
Hi, Should have said - this is an iOS project. It would be great if I could just get the same graphics for the controls as the Main Player, I could easily wire up my own action handlers….. Cheers Dave > On 17 May 2017, at 13:14, Charles Jenkins <cejw...@gmail.com> wrote: > >

Video Player Controls?

2017-05-17 Thread Dave
displaying and responding to these controls or do I have to completely roll my own, with my own graphics etc? Thanks a lot All the Best Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Video Player Controls?

2017-05-16 Thread Dave
___ 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:

iOS AVPlayerViewController and AVPlayer Documentation/Help

2017-05-11 Thread Dave
myPlayerViewController.view.frame but this doesn’t seem to work. I found some iOS 6 code that I wrote ages ago which does this, but of course this has changed so much since then….. Any help on this greatly appreciated. All the Best Dave -(void) viewDidAppear:(BOOL) theAnimatedFlag { NSURL

Re: Problem Playing Movie File on iOS

2017-05-10 Thread Dave
___ 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:

Re: Problem Playing Movie File on iOS

2017-05-09 Thread Dave
erViewController animated:YES completion:nil]; myPlayerViewController.player = myPlayer; [myPlayer play]; } All the Best Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moder

Problem Playing Movie File on iOS

2017-05-09 Thread Dave
ice versa? Thanks in advance for any help. All the Best Dave ___ 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/Uns

Basic Question about iOS View Controllers/Storyboards

2017-05-08 Thread Dave
sketchy) and then if I get the main contract I will write the end product in Swift unless there is a good reason not to. All the Best Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Determining if an X,Y position will cause a Move or Resize?

2017-04-26 Thread Dave
) or in the Window Frame (resize). Thanks a lot All the Best Dave ___ 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

Question about the Main Thread

2017-04-25 Thread Dave
processing before other requests? All the Best Dave ___ 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

[OT] Question about writing documentation

2017-04-21 Thread Dave
Documentation. Thanks in Advance for any suggestions….. All the Best Dave ___ 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

Getting the Version of an Application

2017-04-11 Thread Dave
Hi All, This is a Mac question. Is there any way of getting the version number of an Application if it is NOT running? Thanks a lot All the Best Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

iOS Same project question

2017-03-22 Thread Dave
of the Screen changes January, February, March, etc. but I can see nothing that actually sets these values? Its obviously something that is hidden somewhere, but I’m at a lost to find it in the code or the storyboard…. Any help greatly appreciated. All the Best Dave

Re: Mobile Cross Platform Solutions

2017-02-09 Thread Dave
Good point, I will bring it up and Thanks Jens I’ll take a look. All the Best Dave > On 8 Feb 2017, at 17:08, Scott Berry <sb356...@gmail.com> wrote: > > Dave, > > While your doing this please keep accessibility for the disabled in mind as > well. This way we can enj

Mobile Cross Platform Solutions

2017-02-08 Thread Dave
the Best Dave ___ 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: https

Re: Overriding the release mehod

2017-01-25 Thread Dave
> On 25 Jan 2017, at 19:37, Doug Hill <cocoa...@breaqz.com> wrote: > > >> On Jan 25, 2017, at 11:23 AM, Dave <d...@looktowindward.com >> <mailto:d...@looktowindward.com>> wrote: >> >> I also tried searching “release method docume

Re: Overriding the release mehod

2017-01-25 Thread Dave
I also tried searching “release method documentation” but nada! ___ 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: Overriding the release mehod

2017-01-25 Thread Dave
Cheers, I tried searching “release method definition” but that doesn’t bring it up - go figure! All the Best Dave > On 25 Jan 2017, at 19:04, Doug Hill <cocoa...@breaqz.com> wrote: > > >> On Jan 25, 2017, at 10:59 AM, Dave <d...@looktowindward.com >> <mailt

Re: Overriding the release mehod

2017-01-25 Thread Dave
ctivec/protocol?language=objc but no mention of release to be found? All the Best Dave ___ 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-

Re: Overriding the release mehod

2017-01-25 Thread Dave
am doing it assumes that is it a) my code I am talking about, b) that I am intending to add it as new code, c) that I don’t know what I’m doing as I said I was 99.999% sure that it needed to be called in this case but wanted to see it in black and while. All the Best Dave > On 25 Jan 2

Re: Overriding the release mehod

2017-01-25 Thread Dave
> On 25 Jan 2017, at 16:48, Bill Cheeseman <wjcheese...@comcast.net> wrote: > > >> On Jan 25, 2017, at 11:23 AM, Dave <d...@looktowindward.com >> <mailto:d...@looktowindward.com>> wrote: >> >> I hate it when people as that question! The

Re: Overriding the release mehod

2017-01-25 Thread Dave
the docs. Cheers Dave > On 25 Jan 2017, at 15:55, Mike Abdullah <mabdul...@karelia.com> wrote: > > You’re inevitably going to get asked this: > Why on earth are you overriding release? It’s an incredibly niche thing to > do, and the answer probably depends a lot on

Overriding the release mehod

2017-01-25 Thread Dave
Hi, Does [suoer release] need to be called if you override this method? I’m 99.9% sure it does, but I can’t find it anywhere it actually says it in black and white. All the Best Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Clarification on MMM rules for init?

2017-01-21 Thread Dave
autorelease], but instead of retuning nil, it returns self. Is this an error? If so, this framework is being called from an ARC based App, what would be the effect of this error on the App? All the Best Dave ___ Cocoa-dev mailing list (Cocoa-dev

App to Monitor Accessibility Notifications?

2016-11-09 Thread Dave
Hi All, I remember seeing an Application/Tool that monitored Assistive Notifications. Does anyone know if this still exists and where I can get it from? Thanks in Advance, All the Best Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: CoreData headaches

2016-10-27 Thread Dave Fernandes
pass these in to the NSOperation when you create it on the main thread instead of giving it the managed object? Then the MO will never be accessed off the main queue. > On Oct 28, 2016, at 12:02 AM, Steve Mills <sjmi...@mac.com> wrote: > > On Oct 27, 2016, at 22:49:15, Dave Fe

Re: CoreData headaches

2016-10-27 Thread Dave Fernandes
:24 PM, Steve Mills <sjmi...@mac.com> wrote: > > On Oct 27, 2016, at 19:00:14, Dave Fernandes <dave.fernan...@utoronto.ca> > wrote: >> >> Are you accessing the properties from within a >> NSManagedObjectContext.performBlock block? Sounds like you may

Re: CoreData headaches

2016-10-27 Thread Dave Fernandes
> On Oct 27, 2016, at 5:24 PM, Steve Mills wrote: > > I have an app that uses CoreData to store document data, and an > IKImageBrowserView to display the items in the CoreData. Finding that > IKImageBrowserView is being deprecated, and since Xcode 8 causes a goofy >

Re: How to count Atoms

2016-10-07 Thread Dave Fernandes
> > In practice, you’d actually initialize the semaphore like this: > >> dsema = dispatch_semaphore_create (0); // start with a zero count >> dispatch_semaphore_signal (dsema); // increment to the number of >> resources in the pool. > > That’s because if you create the semaphore with

Subclassing and Archiving/Unarchiving

2016-09-25 Thread Dave
I could do is to builder a new base class from the subclass that mean a lot of deep copying. Is there any way that I can get the archiver to just select the Base Class and ignore the extra properties in the Subclass? Or is there a better way of doing this? All the Best Dave

Re: How to update UI from a background thread

2016-09-22 Thread Dave
Ok, will do thanks a lot. The AppleScript is/should be on the Main Thread. I am assuming that the App the Script has finished when it returns but maybe that is not the case. I will look into that too. Thanks a lot for your help. Cheers Dave > On 22 Sep 2016, at 16:42, Jens Alfke

Re: How to update UI from a background thread

2016-09-22 Thread Dave
tusWithInfoMessage:myNetworkStatusString]; So I’m wondering if it is something to do with the AppleScript handling? The Script works ok if I run it from the Script Editor and it compiles and runs ok. Any help on this would be greatly appreciated. All the Best Dave > On 21 Sep 2016, at 17:20, Da

Re: How to update UI from a background thread

2016-09-21 Thread Dave
from CALayer or maybe CATransaction and I think it caused the App to hang. The time consuming method I am calling is in a third party library and it must be called in the main thread. All the Best Dave > On 21 Sep 2016, at 17:01, Sandor Szatmari <admin.szatmari@gmail.com>

How to update UI from a background thread

2016-09-21 Thread Dave
is it ok to do this? When I tried it I got a CALayer error reported in the NSLog output. All the Best Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: How to Launch an App using the Bundle ID?

2016-09-21 Thread Dave
Hi, Thanks a lot! I was surprised that NSWorkspace doesn’t include this seemingly useful method. All the Best Dave > On 20 Sep 2016, at 16:16, Charles Srstka <cocoa...@charlessoft.com> wrote: > >> On Sep 20, 2016, at 5:48 AM, Dave <d...@looktowindward.com >> <

How to Launch an App using the Bundle ID?

2016-09-20 Thread Dave
Hi All, I’m using launchApplication method from Shared Workspace, however, it accept an Application Name and all I have is the Bundle ID. How can I launch an App using the Bundle ID? All the Best Dave ___ Cocoa-dev mailing list (Cocoa-dev

Re: NSMenuItem’s userKeyEquivalent lost if changing title

2016-09-20 Thread Dave Lyons
that case, you're seeing the -attributedTitle. (Ditto for "Burn to Disc…” item.) Small downside: If you look carefully while the menu item is disabled, it looks a bit different from other disabled menu items. --Dave > On Sep 19, 2016, at 10:59:32 PM, Allan Odgaard <lists+co

Re: loadNibNamed deprecated, but newer version crashes

2016-09-19 Thread Dave
Yeah, you need to either assign the Array to a strong property OR you need to extract what you want from the Array and store those items as a strong property. Cheers Dave > On 19 Sep 2016, at 11:19, Alastair Houghton <alast...@alastairs-place.net> > wrote: > > On 19

Re: Window Opened Notification?

2016-09-08 Thread dave
I think I’ve worked out how to do it without making it so buggy but it will take a lot of experimentation…... > On 7 Sep 2016, at 10:41, dangerwillrobinsondan...@gmail.com wrote: > > >> On Sep 7, 2016, at 6:09 PM, Dave <d...@looktowindward.com> wrote: >> >>

Re: Window Opened Notification?

2016-09-08 Thread dave
> On 6 Sep 2016, at 01:29, Andy Lee <ag...@mac.com> wrote: > > Dave, can you clarify whether you want is: > > 1. a notification when the frontmost window changes, or > 2. a notification when some application opens a new window? > > If #1, observing these NSW

Re: Window Opened Notification?

2016-09-07 Thread Dave
Notification. Cheers Dave > On 6 Sep 2016, at 11:15, じょいすじょん <dangerwillrobinsondan...@gmail.com> wrote: > > >> On 2016 Sep 6, at 18:49, Dave <d...@looktowindward.com >> <mailto:d...@looktowindward.com>> wrote: >> >>> >>> Ah.

Re: Window Opened Notification?

2016-09-06 Thread Dave
> On 6 Sep 2016, at 10:37, dangerwillrobinsondan...@gmail.com wrote: > > Ah. > Well in that case, you get accessibility and you need users to allow it once. I said in my original post - without using Accessibility Cheers Dave >> On Sep 6, 2016, at 5:49 PM, Dave <d.

Re: Window Opened Notification?

2016-09-06 Thread Dave
Opens - I want to catch this window open/create User creates a New Window -I want to catch this window open/create Cheers Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mod

Re: Window Opened Notification?

2016-09-05 Thread Dave
> Would it be possible to observe which window becomes the front window and > then send a notification? > That’s what I am trying to find out…… Cheers Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Window Opened Notification?

2016-09-05 Thread Dave
Window list. Cheers Dave > > > Sent from my iPhone > >> On Sep 6, 2016, at 1:09 AM, Dave <d...@looktowindward.com> wrote: >> >> Hi All, >> >> Is there any way other that using Accessibility that you can tell when a >> window is opened

Window Opened Notification?

2016-09-05 Thread Dave
Hi All, Is there any way other that using Accessibility that you can tell when a window is opened is any application? Something like a running app notification? If it is not possible using Cocoa? Is there any way of doing this via the Window Server? All the Best Dave

Re: Does setFormatter() retain?

2016-09-02 Thread Dave
thing I’ve done in the past is to override the “retain” and “release”, etc. methods on certain objects and hold my own retain count as a separate property of the object, then if “retainCount” is not equal to the private retain count, you know the OS has retained it. Cheers Dave __

Re: Objective-C basics - (Why NSNumber conforms to NSCopying protocol)

2016-08-11 Thread Dave
then this will bite you! You should also look at NSCoding, this is the mechanism used to archive and unarchive objects (e.g. create (functionally) Identical Copies), once you understand how this works, it should be obvious why copy and isEqual work the way they do. All the Best Dave > On 11 Aug 2

Re: Objective-C basics - (Why NSNumber conforms to NSCopying protocol)

2016-08-11 Thread Dave
and a new one in another that’s ok, they function differently). All the Best Dave > On 11 Aug 2016, at 09:50, Britt Durbrow > <bdurb...@rattlesnakehillsoftworks.com> wrote: > > >> On Aug 11, 2016, at 12:04 AM, Quincey Morris >> <quinceymor...@rivergatesoft

Re: Keyboard/Mouse Event Interaction

2016-07-18 Thread Dave
> (Though often it's up & inside to trigger some action) > > Sent from my iPhone > >> On Jul 18, 2016, at 10:00 PM, Steve Mills <sjmi...@mac.com >> <mailto:sjmi...@mac.com>> wrote: >> >>> On Jul 18, 2016, at 07:52:02, Dave <d...@l

Re: Keyboard/Mouse Event Interaction

2016-07-18 Thread Dave
Repeat == YES ) NSKeyUp Repeat == NO All the Best Dave > On 18 Jul 2016, at 13:05, dangerwillrobinsondan...@gmail.com wrote: > > You might review the Event programming guide (especially the part about short > circuiting) and the responder chain. > That will pull this t

Re: Keyboard/Mouse Event Interaction

2016-07-18 Thread Dave
Hi Alastair, Thanks a lot for this - it makes my life harder but at least I know how it works now. All the Best Dave > On 17 Jul 2016, at 21:03, Alastair Houghton <alast...@alastairs-place.net> > wrote: > > On 17 Jul 2016, at 14:06, Dave <d...@looktowindward.com> w

Keyboard/Mouse Event Interaction

2016-07-17 Thread Dave
Hi Dave, I’ve noticed the following behaviour: In an XCode Text Window (or any text editor type App), do this: Click and Hold the Left Mouse Button Type a character on the keyboard(Nothing happens) Release the Mouse

Apple Developer Reference Library Safari Plugin

2016-07-01 Thread Dave
I posed this a while back and got no response, does anyone know where I can get this Safari Plug In from? I know its been on this list before but I can’t seem to find the right search term for it? Thanks a lor Dave Hi All, I know this has come up before but after

How to Handle Array of Dictionaries when Archiving/Unarchiving?

2016-06-23 Thread Dave
Array and do a mutableCopy on each of the Dictionaries in the Array? All the Best Dave ___ 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-de

CGWindowList Documentation bug?

2016-06-13 Thread Dave
se a “juddering” effect. Any suggestions or help on the would be greatly appreciated. All the Best Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Conta

Re: How to get Window Info Dict for just one Window?

2016-06-10 Thread Dave
or not? Cheers Dave > On 10 Jun 2016, at 16:15, Dave <d...@looktowindward.com> wrote: > > Hi, > > If I do this: > > myWindowListOptions = kCGWindowListExcludeDesktopElements | > kCGWindowListOptionOnScreenAboveWindow | kCGWindowListOptionIncludingWindow | > k

Re: How to get Window Info Dict for just one Window?

2016-06-10 Thread Dave
believe that there isn’t a function to do this simple thing? Cheers Dave ___ 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

How to get Window Info Dict for just one Window?

2016-06-10 Thread Dave
? All the Best Dave ___ 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: https

  1   2   3   4   5   6   7   8   9   10   >