|
Problem deriving custom object from UIScrollView
macOS 10.12.6 / Xcode 8.3ß6 / Swift 4 / developing for iOS
I am working on a custom object which derives from UIScrollView (at least for now...see below). For initial testing, I am placing it on a vie
macOS 10.12.6 / Xcode 8.3ß6 / Swift 4 / developing for iOS
I am working on a custom object which derives from UIScrollView (at least for now...see below). For initial testing, I am placing it on a vie
|
By
Rick Aurbach
·
|
|
qsort_b in Swift
6 messages
I have an array:
var sortedArray = [UInt32]()
for _ in 0 ..< limit { sortedArray.append( arc4random() ) }
sortedArray.sort()
This works fine.
I would like to compare the efficiency of “sort
I have an array:
var sortedArray = [UInt32]()
for _ in 0 ..< limit { sortedArray.append( arc4random() ) }
sortedArray.sort()
This works fine.
I would like to compare the efficiency of “sort
|
By
Gerriet M. Denkmann
·
|
|
NSTextContainer exclusionPaths not working on iOS
I'm trying to use exclusionPaths for the first time and am not having any success. For now, I'm just creating the stuff on the fly in my drawLayer:inContext: method:. The string draws, but doesn't exc
I'm trying to use exclusionPaths for the first time and am not having any success. For now, I'm just creating the stuff on the fly in my drawLayer:inContext: method:. The string draws, but doesn't exc
|
By
Steve Mills
·
|
|
a mouse event problem on macOS
6 messages
In response to a mouse-down event, I want to display an overlay
window and have a view in that window process mouseDragged
messages. However, it does not get any mouseDragged messages,
In response to a mouse-down event, I want to display an overlay
window and have a view in that window process mouseDragged
messages. However, it does not get any mouseDragged messages,
|
By
James Walker
·
|
|
Bugreporter ?
3 messages
Logging in to: https://bugreport.apple.com I get a page “Bug Reporter” which does *not* lists my bugs, but just contains one line: “Apple Developer Program Support.”, which is a link to: https://devel
Logging in to: https://bugreport.apple.com I get a page “Bug Reporter” which does *not* lists my bugs, but just contains one line: “Apple Developer Program Support.”, which is a link to: https://devel
|
By
Gerriet M. Denkmann
·
|
|
Using Storyboard References as objects
I would like to build an object similar to a IB "Container View", but which stores a list of contained views and can transition from one to another. Ideally, the view would contain an outlet collectio
I would like to build an object similar to a IB "Container View", but which stores a list of contained views and can transition from one to another. Ideally, the view would contain an outlet collectio
|
By
Rick Aurbach
·
|
|
WKWebView
4 messages
The documentation says: “In apps that run in macOS 10 and later, use the WKWebView class instead of using WebView.” “In apps that run in iOS 8 and later, use the WKWebView class instead of using UIWeb
The documentation says: “In apps that run in macOS 10 and later, use the WKWebView class instead of using WebView.” “In apps that run in iOS 8 and later, use the WKWebView class instead of using UIWeb
|
By
Gerriet M. Denkmann
·
|
|
WKWebView does not load images
8 messages
[ wkWebView loadHTMLString: htmlString baseURL: nil ]; htmlString contains: …<img alt=“alternate” src=“/path/to/myImage.gif” /> …. WKWebView just shows a rectangle containing: “alternate”. WebView sho
[ wkWebView loadHTMLString: htmlString baseURL: nil ]; htmlString contains: …<img alt=“alternate” src=“/path/to/myImage.gif” /> …. WKWebView just shows a rectangle containing: “alternate”. WebView sho
|
By
Gerriet M. Denkmann
·
|
|
Schemes in WKWebView
iOS 11. I created MySchemeHandler, which implements the WKURLSchemeHandler protocol; methods just do NSLog(). NSString *myScheme = @"myScheme"; [wkWebView.configuration setURLSchemeHandler: mySchemeHa
iOS 11. I created MySchemeHandler, which implements the WKURLSchemeHandler protocol; methods just do NSLog(). NSString *myScheme = @"myScheme"; [wkWebView.configuration setURLSchemeHandler: mySchemeHa
|
By
Gerriet M. Denkmann
·
|
|
[XCode] Developer ID code signing - still exists?
8 messages
Hi all, Run into another code signing issue. I distribute an app outside the App Store, so I use a Developer ID to sign it. Suddenly, the option to do this disappeared from XCode. When I attempt it, I
Hi all, Run into another code signing issue. I distribute an app outside the App Store, so I use a Developer ID to sign it. Suddenly, the option to do this disappeared from XCode. When I attempt it, I
|
By
Graham Cox
·
|
|
iOS automatic build number incrementing.
2 messages
Earlier today, I finally added this to my latest app in a way that doesn’t constantly dirty the info.plist file. I’ve been trying it out for the day and it seems to handle the initial need. I’ve writt
Earlier today, I finally added this to my latest app in a way that doesn’t constantly dirty the info.plist file. I’ve been trying it out for the day and it seems to handle the initial need. I’ve writt
|
By
Alex Zavatone
·
|
|
Sandboxed WkWebView
15 messages
macOS 12.6 When I start my sandboxed app, I get lots of messages like: “could not create “/Volumes/à¹à¸¡à¹à¸/Users/gerriet/Library/Containers/….”." Of course there is no disk-partition called “à¹à
macOS 12.6 When I start my sandboxed app, I get lots of messages like: “could not create “/Volumes/à¹à¸¡à¹à¸/Users/gerriet/Library/Containers/….”." Of course there is no disk-partition called “à¹à
|
By
Gerriet M. Denkmann
·
|
|
Objective-C: What is the current preferred method of declaring constants without a .pch?
9 messages
I’ve read the Apple docs and looked around and can’t find definitive sources on what the preferred method is and how to do it. Do we use modules? If so, how? I understand that a .pch is now a “bad ide
I’ve read the Apple docs and looked around and can’t find definitive sources on what the preferred method is and how to do it. Do we use modules? If so, how? I understand that a .pch is now a “bad ide
|
By
Alex Zavatone
·
|
|
LInker errors where there were none before
8 messages
Hi all, I’m suddenly running into some linker errors against AudioToolbox on a project after upgrading Xcode and installing High Sierra (not sure which of these did it). Undefined symbols for architec
Hi all, I’m suddenly running into some linker errors against AudioToolbox on a project after upgrading Xcode and installing High Sierra (not sure which of these did it). Undefined symbols for architec
|
By
Graham Cox
·
|
|
Hello
Dear all, My name is Akifumi Takata. Regards, Akifumi Takata
Dear all, My name is Akifumi Takata. Regards, Akifumi Takata
|
By
Akifumi Takata
·
|
|
Documentation on printing in NSView, etc.
2 messages
Hi all, Can anyone link any sort of documentation that explains what all the stuff NSView does for printing does? I’m sure there used to be documentation explaining this but I just can’t find it. (And
Hi all, Can anyone link any sort of documentation that explains what all the stuff NSView does for printing does? I’m sure there used to be documentation explaining this but I just can’t find it. (And
|
By
Graham Cox
·
|
|
Observing changes in TableView
6 messages
macOS 12.6 I have an ArrayController which has ContentArray bound to AppDelegate.contentArray The contentArray contains MutableDictionaries with a key “Flag”, value: boxed BOOL. And a TableView which
macOS 12.6 I have an ArrayController which has ContentArray bound to AppDelegate.contentArray The contentArray contains MutableDictionaries with a key “Flag”, value: boxed BOOL. And a TableView which
|
By
Gerriet M. Denkmann
·
|
|
Opening File in Finder
7 messages
I want to have a Finder window with “/a/hugeFolder/someThin"g selected. [ NSWorkspace.sharedWorkspace openFile: @“/a/hugeFolder/someThing” withApplication: @“Finder" ] results in an AlertPanel: “There
I want to have a Finder window with “/a/hugeFolder/someThin"g selected. [ NSWorkspace.sharedWorkspace openFile: @“/a/hugeFolder/someThing” withApplication: @“Finder" ] results in an AlertPanel: “There
|
By
Gerriet M. Denkmann
·
|
|
How to configure NumberFormatter in Xcode
3 messages
macOS 12.6, Xcode Version 9.1 (9B55). I added a NumberFormatter (Decimal) to some TextField. This now shows: “12.345”. Not bad, but I want to see: “12.3”. NSNumberFormatter has a property: maximumFrac
macOS 12.6, Xcode Version 9.1 (9B55). I added a NumberFormatter (Decimal) to some TextField. This now shows: “12.345”. Not bad, but I want to see: “12.3”. NSNumberFormatter has a property: maximumFrac
|
By
Gerriet M. Denkmann
·
|
|
TextFields in a Row with AutoLayout
macOS 12.6, Xcode Version 9.1 (9B55). A window with: fixedSpace | fixedTextField | fixedSpace | textField(width ≥ 50) | fixedSpace | textField(width ≥ 100) | variableSpace( width ≥ 10) This implies wi
macOS 12.6, Xcode Version 9.1 (9B55). A window with: fixedSpace | fixedTextField | fixedSpace | textField(width ≥ 50) | fixedSpace | textField(width ≥ 100) | variableSpace( width ≥ 10) This implies wi
|
By
Gerriet M. Denkmann
·
|