Quantcast
Channel: User Steven Fisher - Stack Overflow
Browsing all 40 articles
Browse latest View live

Comment by Steven Fisher on Shared instance of NSHTTPCookieStorage does not...

Probably not true by now (that was 2016), but I switched to handling cookies myself and haven't had cause to revisit it.

View Article



Comment by Steven Fisher on Adding top actions to bottom navigation activity...

No, I hadn't found that! I just figured it out and came back to write an answer, but I'll look through the docs and see if I missed anything.

View Article

Comment by Steven Fisher on How to enable indexing in Xcode?

Application identifiers are bundle identifiers, which means they ARE case sensitive, but it is not quite that simple because macOS is usually run on a case insensitive file system. Here, the bundle...

View Article

Comment by Steven Fisher on Android studio needs to be updated for Mac Monterey

The warning is about Python 2 (learn more directs to python.org/doc/sunset-python-2). The crash after you click OK is something else.

View Article

Comment by Steven Fisher on TopAppBar flashing when navigating with Compose...

I'm convinced this is the way, but do you have any examples?

View Article


Comment by Steven Fisher on Objective c - How to check if the photo metadata...

Maybe you could provide your own reportless photo collection in-app and disable import from Apple's library. (I know just getting the real location of a photo would be better, but I don't know a way.)

View Article

Comment by Steven Fisher on Opening Containing app from an iOS Share extension

I voted to re-open this because I think I understand the question and it's a good one, but I think it's missing an elaboration of the question in the opening paragraph. I don't want to put your words...

View Article

Comment by Steven Fisher on Find the first appearance of an address with...

Is the page initialized as 0xFFFFFFFF? If so, yes, you can do this. Otherwise you're not going to be able to. If it is, I suggest adding that to the question. :) However, I'm not sure it will help....

View Article


= 16.1.0")"">Comment by Steven Fisher on A numeric comparison was attempted on...

It's 2023 now and this still fixed it for me.

View Article


Comment by Steven Fisher on Swift lazy static member initialization

This is probably the answer to my actual problem, but not directly the answer to my question because I didn't understand static member closures. So an upvote will have to do. :)

View Article

Comment by Steven Fisher on Are there any best practices or considerations...

Your edit has me more concerned than I was originally. Why would a REALLY wrong answer be preferable to handling the condition?

View Article

Comment by Steven Fisher on Asynchronous methods in NSOperation

Oh! If you override a method, unless otherwise documented you should call its super.

View Article

Comment by Steven Fisher on Asynchronous methods in NSOperation

See my answer below (from 2019) for the answer to "cannot" redefine. You also need not synthesize to get storage, though I certainly would.

View Article


Comment by Steven Fisher on How to get timezone offset as ±hh:mm?

This is the way to do it. Don't do date math yourself if the OS will do it for you. (But note that you should set the formatter's time zone, if appropriate.)

View Article

#import "sqlite3.h" from a pod's source

I have a private podspec for a library that relies on Apple's sqlite3.h. Unfortunately, it fails lint:- ERROR | xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more...

View Article


Marking a method as main thread?

With Xcode 9, you can get analyzer warnings if the compiler is able to figure out that you're calling UIKit from a background thread.Is there a way to get these for my own methods?For...

View Article

Answer by Steven Fisher for Would it be beneficial to begin using...

Yes, there are benefits to using instancetype in all cases where it applies. I'll explain in more detail, but let me start with this bold statement: Use instancetype whenever it's appropriate, which is...

View Article


Declare that a variable must not be captured by a Block

Is there a way to prevent a variable from being captured into a block?I'm wanting something like this:[context performBlockAndWait:^{ CoreDataObject *coreDataObject = [self getObject]; NSString *name =...

View Article

Dynamic height for static table cells with wrapping labels?

My text is two lines long in portrait mode. When I switch to landscape mode, it fits into a single line. I'm using static tableview cells via a storyboard; how can I resize the row to fit snugly?The...

View Article

Answer by Steven Fisher for Questions about instance variable, properties,...

1) What is the difference between declaring an instance variable and a property? Since the compiler automatically creates an instance variable for every property, is there any real advantage besides...

View Article
Browsing all 40 articles
Browse latest View live




Latest Images