UIActivityItemSource and Facebook?

2015-10-19 Thread Steve Mykytyn
Working with the UIActivityItemSource, I'm finding that Facebook won't take anything except an image or URL - is there any way to supply it with text? My code works fine with Mail, Twitter, etc. The Facebook and Messenger apps will display a supplied image, will extract an image from a URL in pre

NSBundleResourceRequest with Initial Install Tags not available immediately?

2015-11-04 Thread Steve Mykytyn
I've got an app, with a pre-built Core Data persistent store, that I'm trying to use with On-Demand resources, set up with Initial Install tags. Trying to use it on first run in the App Delegate, I'm finding that on a real device attached to Xcode, the resources are not immediately available on t

CloudKit queries for records with CKAssets - one or many?

2016-06-19 Thread Steve Mykytyn
I've got an app that displays 40-50 thumbnail images at a time via CloudKit. Right now it issues a CKQuery for each image when its corresponding UICollectionViewCell becomes visible. (Once I have them they are kept locally) I could launch 1 or 2 queries to retrieve the entire batch, which would o

NSCalendar and NSDates prior to October 15, 1582

2015-01-30 Thread Steve Mykytyn
The documentation for the Date and Time Programming Guide for iOS does not seem to be telling the truth, or perhaps I'm doing something wrong. From https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/DatesAndTimes/Articles/dtHist.html "The Julian to Gregorian Transition NSCale

Re: NSCalendar and NSDates prior to October 15, 1582

2015-02-12 Thread Steve Mykytyn
15 Jan 30, at 12:32, Steve Mykytyn wrote: > > > > The documentation for the Date and Time Programming Guide for iOS does > not seem to be telling the truth, or perhaps I'm doing something wrong. > > Please file a bug report. > > > On Feb 5, 2015, at 6:56 AM, Jeffrey

Reusable Detail View Controller for UISplitViewController?

2015-07-31 Thread Steve Mykytyn
This seems too easy - seems to work great. Can anyone point out a defect with this approach? I want to reuse the same view controller instance as the detail view controller for a UISplitViewController - my experience is that constantly instantiating view controllers can be sluggish. Simply makin

Xcode warning from linking to a third-party framework in both app and in framework included in app?

2015-08-18 Thread Steve Mykytyn
I'm linking to the Parse.com frameworks in both my app and in a private framework of my own included in the app. This generates the linker warning below. Both the app and the included framework use objc[1735]: Class PFObject is implemented in both and . One of the two will be used. Which one i

Re: Xcode warning from linking to a third-party framework in both app and in framework included in app?

2015-08-18 Thread Steve Mykytyn
ild folders all around, do the builds and the warnings are all gone. At least on Xcode 6.4... On Tue, Aug 18, 2015 at 10:23 AM, Jens Alfke wrote: > > On Aug 18, 2015, at 8:48 AM, Steve Mykytyn wrote: > > I'm linking to the Parse.com <http://parse.com/> frameworks in both my

Re: 10.6 Base, 10.5 Target, runs fine on everything except Intel 10.5 [KIND OF SOLVED]

2010-03-12 Thread Steve Mykytyn
these things. On Mar 9, 2010, at 3:25 PM, Greg Parker wrote: > On Mar 9, 2010, at 2:57 PM, Steve Mykytyn wrote: >> I know all about separating 10.6 from 10.5 stuff. The problem is: I've been >> testing on a 10.5 PPC machine, where everything works fine. On 10.5 Inte

Xcode 3.23 broke my code signing

2010-04-14 Thread Steve Mykytyn
Project that built fine for weeks fails to pass validation, won't run when installed. Ran Xcode uninstall, reinstalled from scratch, same deal. Other than randomly trying stuff, does anyone have a known working procedure for fixing this??? Hard to think of a less productive way to waste time.

Re: Xcode 3.23 broke my code signing [FIXED]

2010-04-15 Thread Steve Mykytyn
:25 PM, Steve Mykytyn wrote: > >> Project that built fine for weeks fails to pass validation, won't run when >> installed. >> >> Ran Xcode uninstall, reinstalled from scratch, same deal. >> >> Other than randomly trying stuff, does anyone have a known wo

Big Core Data, countForFetchRequest, and GCD

2011-03-29 Thread Steve Mykytyn
countForFetchRequest seems to bog down on really big collections of entities. For approx 170K entities it takes around 10 seconds on an iPhone 3GS to count them, which is a problem in a UITableView where you are trying to display a list of entities and associated counts. A GCD based solution, tha

Re: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-01 Thread Steve Mykytyn
Just to add another two cents on the unreliability of pings for determining reachability, if you are using the wi-fi service in certain airports, cafes, etc. some wi-fi providers will respond to a ping of anything, so it will appear you can reach any host, when in fact you can't reach anything exce

10.6 Base, 10.5 Target, runs fine on everything except Intel 10.5

2010-03-09 Thread Steve Mykytyn
Trying to build an app with base SDK 10.6, target OS 10.5. everything works fine on Intel 10.6, PPC 10.5, but I get a crash on PPC 10.5. Any suggestions? Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0002, 0x Crashed Thread: 0 Dyld Error Message:

10.6 Base, 10.5 Target, runs fine on everything except Intel 10.5 (repost)

2010-03-09 Thread Steve Mykytyn
(fumbled the previous post - sorry) Trying to build an app with base SDK 10.6, target OS 10.5. everything works fine on Intel 10.6, PPC 10.5, but I get a crash on INTEL 10.5. Any suggestions? Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0002, 0x Cr

Re: 10.6 Base, 10.5 Target, runs fine on everything except Intel 10.5

2010-03-09 Thread Steve Mykytyn
ation]; > ... > } > else > { > // 10.5 case... > } > > > > On Mar 9, 2010, at 2:30 PM, Steve Mykytyn wrote: > >> Trying to build an app with base SDK 10.6, target OS 10.5. >> >> everything works fine on Intel 10.6, PPC 10.5, but I ge

alias link to libcrypto not working across different OS X versions

2009-08-19 Thread Steve Mykytyn
I have an app that needs to work across recent OS X versions. It links in the libcrypto.dylib, which is of course an alias. Path: /usr/lib/libcrypto.dylib Full Path: /usr/lib/libcrypto.0.9.x.dylib (anonymized to respect NDAs) App works fine on the dev machine with the newer OS X rele

UIDatePicker displays incorrect day in UIDatePickerDateAndTime mode for zones 12+ hours ahead of defaultZone

2011-01-10 Thread Steve Mykytyn
UIDatePicker (4.2.1) shows differing dates for the modes UIDatePickerDate (correct), and UIDatePickerDateAndTime (incorrect) when the timezone you assign to the UIDatePicker is - more than 12 hours ahead (east) of the systemTimeZone of the iPhone. For example, device system time

How to create a dial keypad with autolayout?

2013-08-31 Thread Steve Mykytyn
Having done this a number of times with springs and struts, I thought a telephone dial keypad would be a good way to learn the ins and outs of auto layout - 5 rows of three buttons each - Each button has a label (2) and optional label below (abc) - The width of the buttons always the same. - The h

Core Data, Bindings, NSSearchField, and NSPopUpButton

2008-09-12 Thread Steve Mykytyn
I'm displaying a list of 100,000 or so global locations in an NSTableView, using an NSSearchField to help the user zero in on desired locations by street address, city, state, country, etc. It all works fine using Core Data plus bindings. And best of all no interface code... It would be

Core Data: following a relationship to set a transient attribute during awakeFromFetch

2008-12-14 Thread Steve Mykytyn
I am using transient attributes as a nice and efficient way to display formatted data (with line breaks) in an NSTableView, and am running into trouble in my awakeFromFetch: method for a subclass of NSManagedObject. This works fine in the awakeFromFetch: when building a transient attribut

NSURLConnection willSendRequest: not behaving as expected on a 302 response - no further response after nil return

2008-10-04 Thread Steve Mykytyn
I'm using NSURLConnection to contact a URL that returns a 302 response along with some data, and then returns a 200 response with some different data. I want to stop it at the 302 response and get the data that comes along with the 302 response. To make this happen I understand the delegate meth

NSSearchField constants in search predicate binding?

2008-11-13 Thread Steve Mykytyn
I'd like to use constant values in certain NSSearchField search predicate bindings, but can't seem to get them to work. As in these two predicates ALL phoneNumber contains $value USA ONLY (phoneNumber contains $value) and (countryName contains 'United States') Is this possible, and what'

NSDateFormatter timeStyle NSDateFormatterFullStyle for dates earlier than 1970?

2014-06-11 Thread Steve Mykytyn
NSDateFormatter (iOS) does not produce time zone names (or abbreviations) prior to January 1, 1970, instead shifting to the "GMT-08:00" style. Is this a bug or a feature? Judging from the tz database, it should be able to produce names prior to 1970 if I understand tz correctly. NSDateFormatter

Best Xcode machine mid-2019?

2019-06-28 Thread Steve Mykytyn via Cocoa-dev
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 wondering if an iMac Pro or a top-of-the-line 2019 iMac would be a life-changing experience. Or just, "that's nice." The Geekbench numbers are somewhat informative, but hoping for

Re: Best Xcode machine mid-2019?

2019-06-29 Thread Steve Mykytyn via Cocoa-dev
time, great. > If not, just keep > on building great apps. > > > On Jun 28, 2019, at 11:02 AM, Steve Mykytyn via Cocoa-dev < > cocoa-dev@lists.apple.com> wrote: > > My main Xcode machine is a late 2013 27-inch iMac, 24GB RAM, 3.5 GHz Core > i7 with 500GB SSD. >

Re: Best Xcode machine mid-2019?

2019-07-01 Thread Steve Mykytyn via Cocoa-dev
The framework I'm building is written in Objective-C. I'm waiting for Swift to stabilize... Looking at Activity Monitor during the build, all four CPU cores are utilized symmetrically, the four hyper-threads somewhat less. The disk IO doesn't look like it's a bottleneck either. It does seem to

On Demand Resource Trouble in Xcode 11 / iOS 13

2019-10-18 Thread Steve Mykytyn via Cocoa-dev
I'm having a problem with ODR in Xcode 11. Worked fine in Xcode 10 / iOS 12, both device and simulator. 1. I have the asset catalog in the main bundle 2. I have the Build Setting set to YES for Embed Asset Packs in Product Bundle 3. I can see that the assets are correctly copied into the bundle. 4

Code signing problem in one project...

2020-04-26 Thread Steve Mykytyn via Cocoa-dev
I'm automatically managing code signing on all my Xcode projects. Just today, one started refusing to validate / distribute, claiming it was missing a private key. All the other projects continue to build just fine. Tried restarting Xcode, turned automatic signing on and off, deleted derived dat

UITableViewHeaderFooter frames?

2020-08-11 Thread Steve Mykytyn via Cocoa-dev
I would like to get the frame of displayed UITableViewHeaderFooter views, but unfortunately [self.tableView.delegate tableView:self.tableView viewForHeaderInSection:i] returns the correct UITableViewHeaderFooter based on its textLabel, but the frame is all zeroes: Printing description of header:

Tracking source of recommendation

2021-04-22 Thread Steve Mykytyn via Cocoa-dev
Glad to see this list showing a little life, so I thought I would ask a question. I know how to make a link that app users can send to their friends as email/message/post to take them to the app on the App Store. What I would like to do is associate the new app user upon first launch with the use

Re: How do you handle reading a plist if it may be an array or a dictionary?

2021-05-09 Thread Steve Mykytyn via Cocoa-dev
You're creating your own problem here. If you are controlling what the configuration plist is, make it a dictionary at the top level with three keys and entries: idString - something that confirms to you that this is one of yours array - the array you want in some cases dictionary - the dictionar