Re: UITableViewController

2017-06-29 Thread Gerriet M. Denkmann
> On 29 Jun 2017, at 12:13, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Jun 28, 2017, at 22:02 , Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> I had to do two more steps: >> >> 1. give the segue an identifier,

Re: UITableViewController

2017-06-28 Thread Gerriet M. Denkmann
> On 29 Jun 2017, at 00:48, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Jun 28, 2017, at 01:38 , Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> I did just that. > > Not quite … > >> I have a Maste

Re: UITableViewController

2017-06-28 Thread Gerriet M. Denkmann
> On 28 Jun 2017, at 14:37, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Jun 28, 2017, at 00:21 , Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> Ok, so I removed my TableView from the scene and tried to drag a >

UITableViewController

2017-06-28 Thread Gerriet M. Denkmann
I have (iOS 10.3) a UIViewController which contains: Other Stuff UITableView Now I want to add a UIRefreshControl to my TableView. The documentation says: that UIRefreshControl “is specifically designed for use in a table view that’s managed by a table view controller, using it in a different

Re: Doubled Pixels

2017-06-25 Thread Gerriet M. Denkmann
> On 26 Jun 2017, at 08:03, Graham Cox <graham@bigpond.com> wrote: > >> On 25 Jun 2017, at 7:39 pm, Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> Which of these two lines is preferable: >> NSString *colorSpa

Re: Doubled Pixels

2017-06-25 Thread Gerriet M. Denkmann
> On 25 Jun 2017, at 09:29, Graham Cox wrote: > > You could get the colorSpaceName from the source image and use that. If > there’s no conversion needed between the images it’ll probably be faster > (though seems you are giving yourself the option of creating a

Re: Doubled Pixels

2017-06-24 Thread Gerriet M. Denkmann
> On 23 Jun 2017, at 23:37, Jens Alfke <j...@mooseyard.com> wrote: > > >> On Jun 23, 2017, at 8:45 AM, Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> the image looks fine, but when I write subData to disk, it has 64 x 64 >> pixels. &g

Doubled Pixels

2017-06-23 Thread Gerriet M. Denkmann
macOS 12.5 I try to make a sub image (subRect has size 32 x 32) like: NSRect pubRect = NSZeroRect; pubRect.size = subRect.size; NSImage *subImage = [ [NSImage alloc] initWithSize: subRect.size ]; [ subImage lockFocus ]; [ self.imagedrawAtPoint:NSMakePoint(0, 0)

Re: How to create an animated gif?

2017-06-22 Thread Gerriet M. Denkmann
> On 21 Jun 2017, at 23:56, Alastair Houghton <alast...@alastairs-place.net> > wrote: > > On 21 Jun 2017, at 16:09, Jens Alfke <j...@mooseyard.com> wrote: >> >> On Jun 20, 2017, at 11:17 PM, Gerriet M. Denkmann <gerri...@icloud.com> >> wrote

How to create an animated gif?

2017-06-21 Thread Gerriet M. Denkmann
macOS 12.5 Assume that I have two NSImages, both with the same size, how can I create an animated gif which alternates between these two images? Gerriet. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Writing NSImage

2017-06-21 Thread Gerriet M. Denkmann
macOS 12.5 I create an image like: NSImage *subImage = [ [NSImage alloc] initWithSize: subRect.size ]; [ subImage lockFocus ]; [ self.imagedrawAtPoint:NSMakePoint(0, 0) fromRect: subRect operation:

Re: NSTimer or what?

2017-06-20 Thread Gerriet M. Denkmann
> On 20 Jun 2017, at 16:24, Alastair Houghton <alast...@alastairs-place.net> > wrote: > > On 20 Jun 2017, at 04:04, Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> > >> 2. some other thing repeatedly about every 0.1 second. > > Persona

Re: NSTimer or what?

2017-06-20 Thread Gerriet M. Denkmann
> On 20 Jun 2017, at 16:24, Alastair Houghton <alast...@alastairs-place.net> > wrote: > > On 20 Jun 2017, at 04:04, Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> macOS 11+ >> >> Some Cocoa app which has to do: >> 1. something a f

Cursor outside Rect without polling

2017-06-19 Thread Gerriet M. Denkmann
macOS. Some Cocoa app wants to know whether the cursor moved from any point to a point outside of some rect. Currently I use polling (which looks kind of inefficient). I tried NSTrackingArea, but this does not work: 1. if the cursor is initially NOT in the rect, the app does not get notified:

NSTimer or what?

2017-06-19 Thread Gerriet M. Denkmann
macOS 11+ Some Cocoa app which has to do: 1. something a few seconds later 2. some other thing repeatedly about every 0.1 second. What is the most efficient (energy-wise) way to do this: NSTimer (with tolerance) NSRunLoop performSelector:target:argument:order:modes: NSObject

strange behaviour of hasPrefix

2017-05-03 Thread Gerriet M. Denkmann
// strange behaviour for probably all combining marks (macOS 12.4): NSString *pintu = @"-ฺ";// HYPHEN-MINUS + THAI CHARACTER PHINTHU // ok NSString *test1 = pintu; [ self printTestString: test1 ]; // prints: length 2 0x2d 0xe3a “-ฺ” ok: has prefix

Re: iOS TableView moving down

2017-04-30 Thread Gerriet M. Denkmann
> On 29 Apr 2017, at 11:56, Saagar Jha <saa...@saagarjha.com> wrote: > > > Saagar Jha > >> On Apr 28, 2017, at 20:22, Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >>> >>> On 23 Apr 2017, at 14:45, Quincey Morris >>&g

Re: iOS TableView moving down

2017-04-28 Thread Gerriet M. Denkmann
> On 23 Apr 2017, at 14:45, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Apr 22, 2017, at 23:55 , Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> But now I want to move the table view down 1 cm (leaving 1 cm unused spac

iOS TableView moving down

2017-04-23 Thread Gerriet M. Denkmann
I got an iOS app where one scene contains a TableView which fills the whole screen. Works fine. But now I want to move the table view down 1 cm (leaving 1 cm unused space at the top of the screen above the table view). Reason: top of the table view (which contains a SearchField) is rather hard

Re: Normalisation of filenames

2017-04-04 Thread Gerriet M. Denkmann
> On 3 Apr 2017, at 05:58, Aki Inoue wrote: > >>> This is the standard Unicode Normalization behavior. Each Unicode character >>> is assigned the Unicode Combining Property, an integer value defining the >>> canonical ordering of combining marks. >>> >>> The Unicode Combining

Re: Normalisation of filenames

2017-04-02 Thread Gerriet M. Denkmann
> On 2 Apr 2017, at 10:59, Aki Inoue <a...@apple.com> wrote: > > >> On Apr 1, 2017, at 4:57 PM, Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> >>> On 2 Apr 2017, at 06:33, Jens Alfke <j...@mooseyard.com> wrote: >>> &g

Re: Normalisation of filenames

2017-04-01 Thread Gerriet M. Denkmann
> On 2 Apr 2017, at 06:33, Jens Alfke <j...@mooseyard.com> wrote: > > >> On Apr 1, 2017, at 11:58 AM, Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> I think that the examples above show, that NSURL does indeed do something >> about norma

Re: Normalisation of filenames

2017-04-01 Thread Gerriet M. Denkmann
> On 2 Apr 2017, at 01:09, Quincey Morris <quinceymor...@rivergatesoftware.com> > wrote: > > On Apr 1, 2017, at 04:41 , Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> for different values of path I got: >> path = @“/ก่ี”; // con

Normalisation of filenames

2017-04-01 Thread Gerriet M. Denkmann
I tried (with case-sensitive HFS+ in macOS 12.4): NSString *path = … NSURL *url = [ NSURL fileURLWithPath: path isDirectory: NO ]; NSString *urlPath = url.path; BOOL same = [ urlPath isEqualToString: path ]; for different values of path I got: path = @“/ก่ี”; // consonant + mark + vowel

Re: How to debug crash in NSOperation?

2017-03-28 Thread Gerriet M. Denkmann
Sent from my iPhone > On 28 Mar 2017, at 11:41, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > >> On Mar 26, 2017, at 22:04 , Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> [ arrayOfStrings writeToFile: “directoryPath/SortedKeys

Re: How to debug crash in NSOperation?

2017-03-27 Thread Gerriet M. Denkmann
Sent from my iPhone > On 28 Mar 2017, at 10:32, Jens Alfke <j...@mooseyard.com> wrote: > > >> On Mar 27, 2017, at 8:25 PM, Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> >> >> Sent from my iPhone >> >>&g

Re: How to debug crash in NSOperation?

2017-03-27 Thread Gerriet M. Denkmann
Sent from my iPhone > On 27 Mar 2017, at 23:37, Jens Alfke <j...@mooseyard.com> wrote: > > >> On Mar 26, 2017, at 10:04 PM, Gerriet M. Denkmann <gerri...@icloud.com> >> wrote: >> >> Yes, you are right. And I have to apologise for not spotting thi

Re: How to convert NSData → Property List Object

2017-03-27 Thread Gerriet M. Denkmann
> On 27 Mar 2017, at 15:49, Felix Franz <fe...@antetype.com> wrote: > > On 27 Mar 2017, at 10:42, Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> propertyListFromData:mutabilityOption:format:errorDescription: (which >> converts an NSData into s

How to convert NSData → Property List Object

2017-03-27 Thread Gerriet M. Denkmann
propertyListFromData:mutabilityOption:format:errorDescription: (which converts an NSData into some property list object) is deprecated. The documentation says: This method is deprecated. Use dataWithPropertyList:format:options:error: instead. But this seems to be the exact opposite: converting

Re: How to debug crash in NSOperation?

2017-03-26 Thread Gerriet M. Denkmann
> On 27 Mar 2017, at 10:39, Ken Thomases <k...@codeweavers.com> wrote: > > On Mar 26, 2017, at 10:06 PM, Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> macOS 12.3 >> >> This is a rather rare bug (never seen before): >> >>

How to debug crash in NSOperation?

2017-03-26 Thread Gerriet M. Denkmann
macOS 12.3 This is a rather rare bug (never seen before): Thread 12 Crashed:: Dispatch queue: เสือ :: NSOperation 0x61800184fbd0 (QOS: UTILITY) 0 libsystem_kernel.dylib 0x7fffb3d65dd6 __pthread_kill + 10 1 libsystem_pthread.dylib 0x7fffb3e51787 pthread_kill

Re: boundingRectForGlyphRange is very inaccurate

2017-03-07 Thread Gerriet M. Denkmann
> On 8 Mar 2017, at 06:37, Ken Thomases <k...@codeweavers.com> wrote: > > On Mar 7, 2017, at 4:17 AM, Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> On 6 Mar 2017, at 23:26, Ken Thomases <k...@codewe

Re: boundingRectForGlyphRange is very inaccurate

2017-03-07 Thread Gerriet M. Denkmann
> On 6 Mar 2017, at 23:26, Ken Thomases <k...@codeweavers.com> wrote: > > On Mar 6, 2017, at 3:41 AM, Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> I am trying to get bounding rects in a TextView: >> >> NSRange glyphRange

boundingRectForGlyphRange is very inaccurate

2017-03-06 Thread Gerriet M. Denkmann
macOS 12.3, Xcode Version 8.2.1 (8C1002). I am trying to get bounding rects in a TextView: NSRange glyphRange =[ layoutManager glyphRangeForCharacterRange: someCharRange actualCharacterRange:

Locale in Watch

2017-02-16 Thread Gerriet M. Denkmann
I use WKInterfaceDate / WKInterfaceTimer in a wach app (3.1.3). I would like to set the Locale - but see no way to do so. The only thing I did accomplish is to set the calendar of WKInterfaceDate according to the locale. In macOS I would use: NSDateFormatter *dateFormatter = [ [

NSNetServiceBrowser vs. mDNSResponder

2017-01-13 Thread Gerriet M. Denkmann
iOS (10.2) app does: SERVICE_TYPE = 1 to 63 ascii chars; no spaces; no ‘.’; no ‘[‘; can use ‘_' or '-'; case insensitive Note: I did not find these rules documented anywhere, they are just the result of trial and error. fullNameOfServiceType = “_SERVICE_TYPE._tcp." [ NSNetServiceBrowser

Requires High Performance Graphic Card - Why?

2016-12-15 Thread Gerriet M. Denkmann
macOS 12.2; MacBook Pro (Retina, Mid 2012). Activity Monitor → Energy tells me that my app requires a "High Performance Graphic Card”. The problem: it has absolutely no reason to do so. The app does some WiFi stuff and displays the result in a window. There is almost no graphics (except from

watchOS

2016-12-06 Thread Gerriet M. Denkmann
watchOS 3 The watchApp has NotificationController ← WKUserNotificationInterfaceController watchApp gets a Local Notification with one associated UNNotificationAction with title = “Accept” [NotificationController init] [NotificationController didReceiveNotification:withCompletion:]

Re: Message from iOS to watchOS

2016-12-06 Thread Gerriet M. Denkmann
app is paired with a watchOS app and the iOS device is locked and the watch is not locked then the Notification is sent also to the watch (and the iOS does not get woken up). Gerriet. > > Scott Tury > >> On Dec 5, 2016, at 12:17 AM, Gerriet M. Denkmann <gerri...@icloud.com>

Re: Message from iOS to watchOS

2016-12-04 Thread Gerriet M. Denkmann
>> >> B: “local” as inside the same app >> i.e. i.e. a local Notification gets sent just to the sending app. >> >> I want to communicate between iOS app and watchOS app without using Apples >> servers. >> If (as some tests seem to indicate) B is

Re: Message from iOS to watchOS

2016-12-04 Thread Gerriet M. Denkmann
then communicate between iOS app and watchOS app? Gerriet. > >> Date: Sat, 03 Dec 2016 13:48:31 +0700 >> From: "Gerriet M. Denkmann" <gerri...@icloud.com> >> To: cocoa-dev <cocoa-dev@lists.apple.com> >> Subject: Message from iOS to watchOS >> Mess

Message from iOS to watchOS

2016-12-02 Thread Gerriet M. Denkmann
I have a pair of apps: iOS + watchOS. The iOS app would like (e.g. when the user taps a button) to send some (short) info to the watchOS app. The watchOS app probably should show something like a Notification Controller Scene: Message from iOS (title) Something was done

Re: Where are the gears?

2016-12-01 Thread Gerriet M. Denkmann
ot as many for iOS as the original poster wanted. > -- > Gary L. Wade > http://www.garywade.com/ > >> On Nov 30, 2016, at 9:55 AM, Richard Charles <rcharles...@gmail.com> wrote: >> >> >>> On Nov 30, 2016, at 1:29 AM, Gerriet M. Denkmann <gerri...@icloud

Re: Where are the gears?

2016-11-30 Thread Gerriet M. Denkmann
> On 30 Nov 2016, at 15:33, Alex Zavatone wrote: > > I made my own since this has been removed. > > I'll send you a few. Is Illustrator or PDF or PNG OK? Pdf or Png would be fine. Thanks a lot! Kind regards, Gerriet. ___

Where are the gears?

2016-11-30 Thread Gerriet M. Denkmann
I want a UIBarButtonItem with a picture of gears, being used to mean “Settings”. This symbol is used by many apps for this function; but I cannot find this image. Where is it hiding? Gerriet. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Vertically Centered Colon

2016-11-29 Thread Gerriet M. Denkmann
> On 30 Nov 2016, at 09:18, Doug Hill wrote: > > >> On Nov 29, 2016, at 3:58 PM, Rick Mann wrote: >> >> >>> On Nov 29, 2016, at 09:38 , Doug Hill wrote: >>> >>> Wow, it's awesome that this works! And now that I know how to

Re: Vertically Centered Colon

2016-11-29 Thread Gerriet M. Denkmann
> On 29 Nov 2016, at 00:40, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Nov 28, 2016, at 07:01 , Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> But in my case I have “21:37:44” where ““21:37” is bold and “:44” is thin. >

Re: Vertically Centered Colon

2016-11-29 Thread Gerriet M. Denkmann
now I have two working solutions: 1. getting the special glyph for the centered colon (as suggested by Alistair) and: 2. using kStylisticAltThreeOnSelector (as suggested by you). Thanks a lot. The hint of “kStylisticAlternativesType” was extremely helpful! Kind regards, Gerriet. > > >&

Re: Vertically Centered Colon

2016-11-28 Thread Gerriet M. Denkmann
> On 28 Nov 2016, at 23:42, Alastair Houghton <alast...@alastairs-place.net> > wrote: > > On 28 Nov 2016, at 16:18, Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> >>> On 28 Nov 2016, at 22:13, Eric E. Dolecki <edole...@gmail.com> w

Re: Vertically Centered Colon

2016-11-28 Thread Gerriet M. Denkmann
> On 29 Nov 2016, at 00:40, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Nov 28, 2016, at 07:01 , Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> But in my case I have “21:37:44” where ““21:37” is bold and “:44” is thin. >

Re: Vertically Centered Colon

2016-11-28 Thread Gerriet M. Denkmann
as rather thinking of UIFontDescriptorFeatureSettingsAttribute with some Feature type from SFNTLayoutTypes.h (in CoreText). I tried a few types, but no success so far. > > On Mon, Nov 28, 2016 at 10:02 AM Gerriet M. Denkmann <gerri...@icloud.com> > wrote: > iOS 10.1.1 > > WWDC 2015,Ses

Vertically Centered Colon

2016-11-28 Thread Gerriet M. Denkmann
iOS 10.1.1 WWDC 2015,Session 804: Introducing the New System Fonts tells (at about 23:23) about Vertically Centered Colons. But I do not understand, how to turn this on. It works automatically (in SF) with colons surrounded by digits. But in my case I have “21:37:44” where ““21:37” is bold and

Re: AutoSave for Windows

2016-11-22 Thread Gerriet M. Denkmann
> On 22 Nov 2016, at 23:07,Andreas Mayer <andr...@harmless.de> wrote: > >> Am 22.11.2016 um 07:34 schrieb Gerriet M. Denkmann <gerri...@icloud.com>: >> >> But now some obnoxious NSPersistentUIRestorer takes over: > > The docs say window restoration use

AutoSave for Windows

2016-11-21 Thread Gerriet M. Denkmann
macOS 12.1, Xcode Version 8.1 (8T61a). App with two windows: FestEvent and Preferences, which have Autosave names of FestEvent, resp. Preferences. Start App → FestEvent window will show. Make it to show Preferences window as well. Move both windows around and observe Preferences.plist to have

Re: Fonts in TableView

2016-11-07 Thread Gerriet M. Denkmann
> On 7 Nov 2016, at 16:43, Alastair Houghton > wrote: > > On 6 Nov 2016, at 06:18, Quincey Morris > wrote: > >> There is probably no perfect strategy that works for every font. However, >> for the kinds of design decisions

Re: Fonts in TableView

2016-11-06 Thread Gerriet M. Denkmann
> On 6 Nov 2016, at 13:18, Quincey Morris <quinceymor...@rivergatesoftware.com> > wrote: > > On Nov 5, 2016, at 21:44 , Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> NSRect boundingRect = tableFont.boundingRectForFont; >&

Fonts in TableView

2016-11-05 Thread Gerriet M. Denkmann
macOS 12.1 TableView and OutlineView (View Based) use: - (void)awakeFromNib NSRect boundingRect = tableFont.boundingRectForFont; self.outlineView.rowHeight = ceil( boundingRect.size.height ) and sets attributedStringValue (using the tableFont). This works mostly ok. But for

Re: How to ResolvingSymlinksInPath ?

2016-11-03 Thread Gerriet M. Denkmann
> On 4 Nov 2016, at 10:39, Ken Thomases <k...@codeweavers.com> wrote: > > On Nov 3, 2016, at 10:08 PM, Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> URLByResolvingAliasFileAtURL does almost the same, has no special behaviour >> with “/

Re: How to ResolvingSymlinksInPath ?

2016-11-03 Thread Gerriet M. Denkmann
> On 3 Nov 2016, at 23:05, Jens Alfke wrote: > > The docs for -stringByResolvingSymlinksInPath say that “for absolute paths, > all symbolic links are guaranteed to be removed.” If it doesn’t actually do > that, then there’s either a bug in the implementation or a bug in

Re: How to ResolvingSymlinksInPath ?

2016-11-03 Thread Gerriet M. Denkmann
> On 2 Nov 2016, at 20:40, Stephane Sudre wrote: > > https://www.cocoawithlove.com/2010/02/resolving-path-containing-mixture-of.html I finally came up with this (all error checking removed): - (NSString *)resolvedPathFor: (NSString *)rawPath { NSURL *url = [

How to ResolvingSymlinksInPath ?

2016-11-02 Thread Gerriet M. Denkmann
I want to remove all symlinks from a path. stringByResolvingSymlinksInPath does NOT do this (e.g. it does not change: /tmp to: /private/tmp). Currently I am using: int fd = open( filename, O_EVTONLY ); fcntl( fd, F_GETPATH, buffer ); close(fd); Is there something better or more suitable?

Re: How to get an undeprecated FSRef

2016-11-01 Thread Gerriet M. Denkmann
> On 1 Nov 2016, at 15:25, Ken Thomases <k...@codeweavers.com> wrote: > > On Nov 1, 2016, at 3:20 AM, Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> What I really want to do: Create custom icons for folders programmatically. > > Use -[NSWorkspace

Re: How to get an undeprecated FSRef

2016-11-01 Thread Gerriet M. Denkmann
> On 1 Nov 2016, at 14:44, Ken Thomases <k...@codeweavers.com> wrote: > > On Nov 1, 2016, at 2:08 AM, Gerriet M. Denkmann <gerri...@icloud.com> wrote: >> >> I am using ReadIconFromFSRef (not deprecated), which needs an FSRef. >> >> How to con

How to get an undeprecated FSRef

2016-11-01 Thread Gerriet M. Denkmann
I am using ReadIconFromFSRef (not deprecated), which needs an FSRef. How to convert a path into an FSRef without deprecation warnings in macOS 12 ? Gerriet. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: How to show a file in Finder

2016-10-31 Thread Gerriet M. Denkmann
> > Best > > > Phil > > >> On 31 Oct 2016, at 17:00, Gerriet M. Denkmann <gerri...@icloud.com> wrote: > > >> >> >> I want to show a file in Finder (not open it in some application). >> >> I tried: >> NSString *p

How to show a file in Finder

2016-10-31 Thread Gerriet M. Denkmann
I want to show a file in Finder (not open it in some application). I tried: NSString *path = @“/some/thing.plist”; [ sharedWorkspace openFile: path withApplication: @“Finder.app" ] but this opens Xcode and displays the content of path. I just want a Finder window with my path

Re: observeValueForKeyPath:... called too often in macOS 12

2016-10-19 Thread Gerriet M. Denkmann
> On 19 Oct 2016, at 15:08, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Oct 19, 2016, at 00:49 , Gerriet M. Denkmann <g...@mdenkmann.de> wrote: >> >> Before: >> >> TextField1 bound Value to: >> Shared Us

Re: observeValueForKeyPath:... called too often in macOS 12

2016-10-19 Thread Gerriet M. Denkmann
> On 19 Oct 2016, at 13:01, Quincey Morris > wrote: > > > One way around this is to use a NSObjectController bound between the text > field and the data model (user defaults in this case). NSObjectController > implements the editor protocols, so this

Re: observeValueForKeyPath:... called too often in macOS 12

2016-10-19 Thread Gerriet M. Denkmann
> On 19 Oct 2016, at 13:01, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Oct 18, 2016, at 22:33 , Gerriet M. Denkmann <g...@mdenkmann.de> wrote: >> >> I have just done this (can send it to you if you are interested). > > I’d

Re: observeValueForKeyPath:... called too often in macOS 12

2016-10-18 Thread Gerriet M. Denkmann
> On 19 Oct 2016, at 11:43,Jerome Krinock <je...@ieee.org> wrote: > > >> On 2016 Oct 18, at 19:32, Gerriet M. Denkmann <g...@mdenkmann.de> wrote: >> >> >>> On 19 Oct 2016, at 02:00,Jerome Krinock <je...@ieee.org>: >>> >&g

Re: observeValueForKeyPath:... called too often in macOS 12

2016-10-18 Thread Gerriet M. Denkmann
terested, I can send you the test app project. Kind regards, Gerriet. > These are things I’ve seen that can cause uncharacteristically often updates. > -- > Gary L. Wade > http://www.garywade.com/ > >> On Oct 18, 2016, at 7:32 PM, Gerriet M. Denkmann <g...@mdenkmann.de>

Re: observeValueForKeyPath:... called too often in macOS 12

2016-10-18 Thread Gerriet M. Denkmann
> On 19 Oct 2016, at 02:00,Jerome Krinock <je...@ieee.org>: > >> On 2016 Oct 14, at 23:08, Gerriet M. Denkmann <g...@mdenkmann.de> wrote: >> >> My app (macOS 12) observes a value in NSUserDefaults. Starting with macOS >> 12 observeValueForKeyPa

observeValueForKeyPath:... called too often in macOS 12

2016-10-15 Thread Gerriet M. Denkmann
My app (macOS 12) observes a value in NSUserDefaults. Starting with macOS 12 observeValueForKeyPath:… is called at the start of the program, although nothing has changed yet. When the value actually changes, it is called twice. Also: NSKeyValueObservingOptionNew or NSKeyValueObservingOptionOld

Re: HandOff Problems

2016-10-14 Thread Gerriet M. Denkmann
> On 13 Oct 2016, at 23:59, Gerriet M. Denkmann <g...@mdenkmann.de> wrote: > >> On 13 Oct 2016, at 20:02, Charles Jenkins <cejw...@gmail.com> wrote: >> >> I don’t have any answers, but please keep us posted. Sierra is the first >> macOS upgrade that pr

Re: HandOff Problems

2016-10-13 Thread Gerriet M. Denkmann
Seems like some black art. Wasn’t there something like “It just works” ? Only: HandOff from Mac to iOS devices is still not working. No idea why. Gerriet. > > On Thu, Oct 13, 2016 at 7:40 AM, Gerriet M. Denkmann <g...@mdenkmann.de> > wrote: > I have two apps for macOS 12 and iOS 10

HandOff Problems

2016-10-13 Thread Gerriet M. Denkmann
I have two apps for macOS 12 and iOS 10 which should do HandOff. HandOff works ok between iOS devices. It once worked from any iOS device to Mac. (Never worked from Mac to an iOS device). Until recently it worked from iPad to Mac (but not from iPhone to Mac). Then I rebooted the Mac, and now

Re: How to count Atoms

2016-10-07 Thread Gerriet M. Denkmann
> On 8 Oct 2016, at 11:22, Quincey Morris <quinceymor...@rivergatesoftware.com> > wrote: > > On Oct 7, 2016, at 21:06 , Gerriet M. Denkmann <g...@mdenkmann.de> wrote: >> >> But, alas, it is also much slower: overhead almost 40 sec (whereas my >&g

Re: How to count Atoms

2016-10-07 Thread Gerriet M. Denkmann
> On 8 Oct 2016, at 05:01, Quincey Morris <quinceymor...@rivergatesoftware.com> > wrote: > > On Oct 7, 2016, at 07:49 , Gerriet M. Denkmann <g...@mdenkmann.de> wrote: >> >> Is there a better way than this: >> dsema = dispatch_semaphore_create( 0 );

Re: Logging in macOS 12

2016-10-07 Thread Gerriet M. Denkmann
> On 7 Oct 2016, at 23:18, Jens Alfke <j...@mooseyard.com> wrote: > > >> On Oct 7, 2016, at 7:56 AM, Gerriet M. Denkmann <g...@mdenkmann.de> wrote: >> >> Some app with NSLog (not running in Xcode) does not show anything in >> Console.app. &

Logging in macOS 12

2016-10-07 Thread Gerriet M. Denkmann
Some app with NSLog (not running in Xcode) does not show anything in Console.app. Only when Iog in as administrator I can see the NSLog lines. Is this working as expected? Can anything be done to make common people see the NSLog lines too? Gerriet.

Re: How to count Atoms

2016-10-07 Thread Gerriet M. Denkmann
> On 7 Oct 2016, at 15:14, Quincey Morris <quinceymor...@rivergatesoftware.com> > wrote: > > On Oct 7, 2016, at 00:19 , Gerriet M. Denkmann <g...@mdenkmann.de> wrote: >> >> So what is the proper way to count something atomicly and undeprecatedly? &g

Re: How to count Atoms

2016-10-07 Thread Gerriet M. Denkmann
> On 7 Oct 2016, at 15:43, Ken Thomases <k...@codeweavers.com> wrote: > > On Oct 7, 2016, at 2:19 AM, Gerriet M. Denkmann <g...@mdenkmann.de> wrote: >> >> I need (just for debugging purposes) to count something in a thread safe >> way. >> […]

How to count Atoms

2016-10-07 Thread Gerriet M. Denkmann
I need (just for debugging purposes) to count something in a thread safe way. This works, but is deprecated: SInt32 counter; - (IBAction)doSomething:sender { counter = 0; some loop { IncrementAtomic( );// 'IncrementAtomic' is

Where are the ICU Headers?

2016-10-06 Thread Gerriet M. Denkmann
The Icu stuff (57.1) is included in macOS 12. There is: /usr/lib/libicucore.A.dylib and Xcode has: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libicucore.tbd But I cannot find the headers. Gerriet.

Re: Mystery Threads

2016-10-01 Thread Gerriet M. Denkmann
> On 1 Oct 2016, at 01:33, Quincey Morris <quinceymor...@rivergatesoftware.com> > wrote: > > On Sep 30, 2016, at 02:57 , Gerriet M. Denkmann <g...@mdenkmann.de> wrote: > >> Any ideas where to look for a reason? > > The next step is probably to clarify

Re: Mystery Threads

2016-09-30 Thread Gerriet M. Denkmann
> On 29 Sep 2016, at 16:05, Roland King <r...@rols.org> wrote: > > >> On 29 Sep 2016, at 16:59, Gerriet M. Denkmann <g...@mdenkmann.de> wrote: >> >> >>> On 29 Sep 2016, at 15:34, Quincey Morris >>> <quinceymor...@rivergatesoftware.c

Re: Mystery Threads

2016-09-29 Thread Gerriet M. Denkmann
> On 29 Sep 2016, at 15:34, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Sep 29, 2016, at 01:05 , Gerriet M. Denkmann <g...@mdenkmann.de> wrote: >> >> Well, nothing. Just let’s call it nbrOfBlocksToBeUsedByDispatchApply,

Re: Mystery Threads

2016-09-29 Thread Gerriet M. Denkmann
> On 29 Sep 2016, at 14:38, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Sep 29, 2016, at 00:15 , Gerriet M. Denkmann <g...@mdenkmann.de> wrote: >> >> dispatch_apply( nbrOfThreads, queue, ^void(size_t idx) >> >> As m

Mystery Threads

2016-09-29 Thread Gerriet M. Denkmann
I have a big array (like a few GB) which is operated upon by some functions. As these functions act purely local, an obvious idea is: - (void)someFunction { nbrOfThreads = ... sizeOfBigArray = ... a few GB stride = sizeOfBigArray / nbrOfThreads

Re: Swift and Threads

2016-09-13 Thread Gerriet M. Denkmann
> On 13 Sep 2016, at 15:20, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > >> On Sep 13, 2016, at 00:57 , Gerriet M. Denkmann <gerr...@mdenkmann.de> wrote: >> >> I was struggling to find a solution which is thread safe. > >

Re: Swift and Threads

2016-09-13 Thread Gerriet M. Denkmann
> On 13 Sep 2016, at 14:14, Stephen J. Butler wrote: > > This site suggests a version using withUnsafeMutableBufferPointer: > > http://blog.human-friendly.com/swift-arrays-are-not-threadsafe > > let nbrOfThreads = 8 > let step = 2 > let itemsPerThread = number * step

Re: Swift and Threads

2016-09-13 Thread Gerriet M. Denkmann
> On 12 Sep 2016, at 22:49, Jens Alfke <j...@mooseyard.com> wrote: > > >> On Sep 12, 2016, at 6:42 AM, Gerriet M. Denkmann <gerr...@mdenkmann.de> >> wrote: >> >> So: is the code ok and the compiler broken in Debug mode? >> Or is the co

Re: Swift and Threads

2016-09-12 Thread Gerriet M. Denkmann
> On 12 Sep 2016, at 22:49, Jens Alfke <j...@mooseyard.com> wrote: > > >> On Sep 12, 2016, at 6:42 AM, Gerriet M. Denkmann <gerr...@mdenkmann.de> >> wrote: >> >> So: is the code ok and the compiler broken in Debug mode? >> Or is the co

Re: How to do isKindOfClass in Swift

2016-09-12 Thread Gerriet M. Denkmann
> On 13 Sep 2016, at 00:14, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Sep 12, 2016, at 03:17 , Gerriet M. Denkmann <gerr...@mdenkmann.de> wrote: >> >> The I got back to the real project: and could also not reproduce it th

Swift and Threads

2016-09-12 Thread Gerriet M. Denkmann
This function works flawlessly in Release build: func markAndTell( talk: Bool, number: Int) { let nbrOfThreads = 8 let step = 2 let itemsPerThread = number * step let bitLimit = nbrOfThreads * itemsPerThread var bitfield = [Bool](count: bitLimit,

Re: How to do isKindOfClass in Swift

2016-09-12 Thread Gerriet M. Denkmann
> On 12 Sep 2016, at 15:51, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Sep 12, 2016, at 01:32 , Gerriet M. Denkmann <gerr...@mdenkmann.de> wrote: >> >> In my real (as opposed to playground) code, each class lives in a d

Re: How to do isKindOfClass in Swift

2016-09-12 Thread Gerriet M. Denkmann
> On 12 Sep 2016, at 15:10, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Sep 12, 2016, at 01:00 , Gerriet M. Denkmann <gerr...@mdenkmann.de> wrote: >> >> This is what I wanted to write: >> >> if self is SArray { … } >

Re: How to do isKindOfClass in Swift

2016-09-12 Thread Gerriet M. Denkmann
> On 12 Sep 2016, at 14:55, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Sep 12, 2016, at 00:50 , Gerriet M. Denkmann <gerr...@mdenkmann.de> wrote: >> >> I would much prefer to have the semantics of “isKindOf”. > > Y

Re: How to do isKindOfClass in Swift

2016-09-12 Thread Gerriet M. Denkmann
> On 12 Sep 2016, at 14:27, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Sep 12, 2016, at 00:08 , Gerriet M. Denkmann <gerr...@mdenkmann.de> wrote: >> >> I want to do: >> if self.dynamicType == SomeClass { … } >> >

How to do isKindOfClass in Swift

2016-09-12 Thread Gerriet M. Denkmann
I have a pure Swift class. I want to do: if self.dynamicType == SomeClass { … } But the compiler won’t accept this (or any number of variations thereof). isKindOfClass needs a “class object representing the Objective-C class to be tested”. How can this be done? Gerriet.

  1   2   3   4   5   6   7   8   9   10   >