|
Re: Exception not being caught in try statement
What's the architecture of the machine on which exceptions aren't being caught? Is the try block working on Intel and not on M1?
The crash is happening as the RTF reader is setting up the tab stops
What's the architecture of the machine on which exceptions aren't being caught? Is the try block working on Intel and not on M1?
The crash is happening as the RTF reader is setting up the tab stops
|
By
Jon Gotow
·
#1357
·
|
|
Exception not being caught in try statement
Hi folks,
Some users are reporting a crash that I can't reproduce, and in an attempt to gain additional diagnostics from a user, I wrapped the affected line in a try/catch block. For two users it
Hi folks,
Some users are reporting a crash that I can't reproduce, and in an attempt to gain additional diagnostics from a user, I wrapped the affected line in a try/catch block. For two users it
|
By
Mark Allan
·
#1356
·
|
|
Re: Push Notification device token from APNS auth response.
And from the WWDC 2020 10095 Notification video.
@objc(stringFromDeviceToken:) public class func stringFromDeviceToken2(deviceToken: Data) -> String
{
let tokenComponents =
And from the WWDC 2020 10095 Notification video.
@objc(stringFromDeviceToken:) public class func stringFromDeviceToken2(deviceToken: Data) -> String
{
let tokenComponents =
|
By
Alex Zavatone
·
#1355
·
|
|
Push Notification device token from APNS auth response.
Sometimes we want to get the string value of the device token after requesting push auth from APNS in didRegisterForRemoteNotificationWithDeviceToken.
Here’s how you can get that string value in
Sometimes we want to get the string value of the device token after requesting push auth from APNS in didRegisterForRemoteNotificationWithDeviceToken.
Here’s how you can get that string value in
|
By
Alex Zavatone
·
#1354
·
|
|
Re: window of document
It looks like there is no public getter for the "window" IBOutlet, even though Interface Builder knows about it and even though there is a public *setter*.
You can get to your window by way of the
It looks like there is no public getter for the "window" IBOutlet, even though Interface Builder knows about it and even though there is a public *setter*.
You can get to your window by way of the
|
By
Andy Lee
·
#1353
·
|
|
window of document
Say I create a new document-based Mac app in Xcode 12.4. In Document.xib, I see that Document, the File’s Owner, has an outlet “window”. But in the source code of the Document class, if I try
Say I create a new document-based Mac app in Xcode 12.4. In Document.xib, I see that Document, the File’s Owner, has an outlet “window”. But in the source code of the Document class, if I try
|
By
James Walker
·
#1352
·
|
|
NSImageView does not animate
macOS 11.2.1
Some app which shows animated gifs, and which has been working just fine, now is not.
@IBOutlet var catImageView: NSImageView!
func applicationDidFinishLaunching(_ aNotification:
macOS 11.2.1
Some app which shows animated gifs, and which has been working just fine, now is not.
@IBOutlet var catImageView: NSImageView!
func applicationDidFinishLaunching(_ aNotification:
|
By
Gerriet M. Denkmann
·
#1351
·
|
|
Re: Help with UTIs and UIDocumentPickerViewController
Sorry, Alex. As usual, publishing this allowed me to see my mistake.
First of all, the "msug" thing has to do with the output file, not the input file.
Secondly, the problem was in the code -- I was
Sorry, Alex. As usual, publishing this allowed me to see my mistake.
First of all, the "msug" thing has to do with the output file, not the input file.
Secondly, the problem was in the code -- I was
|
By
Rick Aurbach
·
#1350
·
|
|
Re: Help with UTIs and UIDocumentPickerViewController
FYI, you might want to heck out the expected file types in UTTypes.h
It’s
FYI, you might want to heck out the expected file types in UTTypes.h
It’s
|
By
Alex Zavatone
·
#1349
·
|
|
Re: Help with UTIs and UIDocumentPickerViewController
Is this the section where you are specifying the file type?
<key>public.filename-extension</key>
<array>
<string>msug</string>
</array>
</dict>
Does that look correct for a CSV file?
Alex
Is this the section where you are specifying the file type?
<key>public.filename-extension</key>
<array>
<string>msug</string>
</array>
</dict>
Does that look correct for a CSV file?
Alex
|
By
Alex Zavatone
·
#1348
·
|
|
Re: Loading tiff files
Jens,
Or, confessional debugging. You find the problem while explaining how your code ‘works’ to someone else…
Sandor
Jens,
Or, confessional debugging. You find the problem while explaining how your code ‘works’ to someone else…
Sandor
|
By
Sandor Szatmari
·
#1346
·
|
|
Re: Loading tiff files
That happens to me too. Or even better, while composing the email I write "could it be something about ____?", then go check on that possibility and find that indeed it was the problem. (A type of
That happens to me too. Or even better, while composing the email I write "could it be something about ____?", then go check on that possibility and find that indeed it was the problem. (A type of
|
By
Jens Alfke
·
#1345
·
|
|
Re: Loading tiff files
Don’t worry. We all fall into that trap - more often than you might expect. You wouldn’t imagine how many times when I was preparing an email to the list when I reread what I was typing, looked
Don’t worry. We all fall into that trap - more often than you might expect. You wouldn’t imagine how many times when I was preparing an email to the list when I reread what I was typing, looked
|
By
Alex Zavatone
·
#1344
·
|
|
Re: Loading tiff files
My mistake. I should really stop skim reading.
Now I feel stupid.
My mistake. I should really stop skim reading.
Now I feel stupid.
|
By
tridiak
·
#1343
·
|
|
Re: Loading tiff files
This has a little more info that may be
This has a little more info that may be
|
By
Alex Zavatone
·
#1342
·
|
|
Re: Loading tiff files
Yep.
The NSImage class itself is capable of managing image data in a variety of formats. The specific list of formats is dependent on the version of the operating system but includes many standard
Yep.
The NSImage class itself is capable of managing image data in a variety of formats. The specific list of formats is dependent on the version of the operating system but includes many standard
|
By
Alex Zavatone
·
#1341
·
|
|
Re: Loading tiff files
Oh? It says so right in the class overview.
"The NSImage class itself is capable of managing image data in a variety of formats. The specific list of formats is dependent on the version of the
Oh? It says so right in the class overview.
"The NSImage class itself is capable of managing image data in a variety of formats. The specific list of formats is dependent on the version of the
|
By
Jens Alfke
·
#1340
·
|
|
Re: Loading tiff files
NSImage opens lots of image file types: jpg, tiff, many raw formats, etc. Instead of thinking “tif” think “image file”.
NSImage opens lots of image file types: jpg, tiff, many raw formats, etc. Instead of thinking “tif” think “image file”.
|
By
Marco S Hyman
·
#1339
·
|
|
Re: Loading tiff files
Ok. Thanks for help.
Google search gave me lots of ways of saving as tiff.
NSImage documentation not very informative what can open tiff.
Ok. Thanks for help.
Google search gave me lots of ways of saving as tiff.
NSImage documentation not very informative what can open tiff.
|
By
tridiak
·
#1338
·
|
|
Re: Loading tiff files
NSImage can do the job.
By
Marco S Hyman
·
#1337
·
|