Search results for

file uri scheme

78,484 results found

Post

Replies

Boosts

Views

Activity

Reply to WCSession sendMessage returning errors (simulator)
Because you're calling the code to start the session in your view controller, you'll have to actually start your iPhone app in order to initiate session info from the iPhone. When you run the watch scheme, only the watch simulator launches the app. Your iPhone app is launched in the background of the iPhone simulator if your watch tries to access it. Also, my understanding is you have to call the same activateSession and delegate methods in the watchkit extension and the iPhone app. But I could be wrong on this part. I think maybe why you're seeing the error message is that your initiating the session on the iphone app, but running only the watch app. so the watch tries to look for a session that isn't there because your iPhone view controller wasn't launched to create the session yet.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Can't boot into recovery
I always make a USB thumb drive and keep it handy. I have 10.7 up too 10.11 just in case.Download the 10.11 beta if you don't already have it and open the terminal and copy/paste the following (Either name your USB Thumb drive Untitled to match the line below or change the name to match your USB thumb drive):sudo /Applications/OS X 10.11 Developer Beta.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/OS X 10.11 Developer Beta.app --nointeractionAfter its created then hold option key down on startup and choose the thumb drive to boot from. Choose disk utillity to format the drive and then do a fresh install of OS X. (If you format make sure you have your files backed up.)
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to san francisco
There appears to be some strange internal doublethink going on with the bundled version of San Francisco.Indeed, like all core fonts, it's located in /System/Library/Fonts, and it occupies a handful of files prefixed SFNS. But it doesn't show up anywhere in Font Book, as far as I could see. And if you go to re-install it (File: Add Fonts and select those files), it will happily copy the files out of the system folder into ~/Library/Fonts——but will still absolutely refuse to show it in the font list!Whatever the reasoning behind this, it's totally creeping me out.(note that the same font—the same files, AFAICT—can be downloaded from Apple directly, but have the prefix SanFrancisco instead of SFNS.)
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to san francisco
OK, I downloaded the official Watch package, including the public-facing font files, and they behave—interestingly, as well.Opening those font files from the Finder should (and does, in Yosemite) open a font preview window in Font Book. In 10.11, the SanFrancisco* files behave the same as the SFNS* ones in this case: Font Book completely ignores them. And again, going to File: Add Fonts allows you to select the files, and they do get copied into the right directory. The only difference is that they then become visible to applications, including Font Book, TextEdit, etc.My best guess is that SFNS* are tagged the same way LastResort.ttf is, to be internally available and displayable, but otherwise unavailable to the user.For something as critical as the standard interface font, this seems extremely cowardly and proprietary, and moreover totally a useless distinction.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
POST bad params with NSURLSession
Hi,I try to use NSURLSession with HTTPAdditionalHeaderMy code setting headers in requestlet URL = NSURL(string: (hostName)(uri))! let request = NSMutableURLRequest(URL: URL) request.HTTPMethod = method request.HTTPBody = NSJSONSerialization.dataWithJSONObject(params, options: nil, error: nil) request.setValue(application/vnd.myapp.v2, forHTTPHeaderField: Accept) request.setValue(application/json, forHTTPHeaderField: Content-Type) request.setValue(gzip, forHTTPHeaderField: Content-Encoding)And with POST request it's produce this on my server :Parameters: {email=>me@email.com, password=>[FILTERED], subdomain=>api, session=>{email=>me@email.com, password=>[FILTERED]}}With NSURLSession, setting headers with HTTPAdditionalHeaders of NSURLSessionConfigurationvar headers = [ Accept: application/vnd.myapp.v2, Content-Type: application/json, Content-Encoding: gzip, ] let request = NSMutableURLRequest(URL: NSURL(string: (hostName)(uri))!) request.HTTPMethod = method request.HTTPBody
Topic: UI Frameworks SubTopic: AppKit Tags:
1
0
2.5k
Jun ’15
Reply to almost afraid to ask on new background modes.
You absolutely have to file enhancement requests and bug reports making your case for the features that you want that iOS doesn't yet support. You probably won't get any direct feedback unless there's difficulty understanding something in your report, but it's still necessary.On the other hand, it's important to remember that Apple applications have both a longer leash (Apple makes the rules) and a shorter leash (Apple's going to be more conservative about most things). The complication with doing a specific task that lasts less than 10 seconds at a specific date and time in the future is one of managing when a dozen different applications all want to do something at the same time. Who goes first? How much time do the have? How does the user tell what's going on? If the foreground application is hogging resources, do you launch late? What happens when you crash in the background?
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Java SE 6
I had Java 8 installed from Oracle under Yosemite and upgraded to El Capitan. If you haven't had it installed, you may try installing it first (be aware, though, that Oracle now ships it with adware, so you may want to look for instructions on how to install it without adware, first (IIRC the trick was downloading the .tar.gz file instead of the dmg file, but better look it up if you need it)).Now this worked for me:1) boot from the Recovery Parition (hold down Cmd+R while booting)2) use Disk Utility to mount the El Capitan system partition3) use Terminal.app to create two folders:mkdir -p /Volumes/[Name of volume]/System/Library/Java/JavaVirtualMachines/1.6.0.jdkmkdir -p /Volumes/[Name of volume]/System/Library/Java/Support/Deploy.bundle4) Unmount the volume (just to be sure)umount /Volumes/[Name of volume]5) Reboot and now Illustrator CS3 works as it did under Yosemite
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
MacOS 10.11 change permission of "SystemVersion.plist"
With the new 10.11 i cant change the MacOS Version into the file: System/Library/CoreServices/SystemVersion.plist.They are set only to Read for everyone. Did activate the Root-User too to change it in the terminal as root-user with chmod, but all in vain. No permissions !!You will ask, why i would change it ? Cause i need to test some drivers and apps who check the MacOS version. So i had make a little Script, what did work well on the beta-test by Yosemite, to change the MacOS version that i have no troubbles to install the driver or the app.For me its one of the important things to check the beta-OS.kind regardsAndy
12
0
34k
Jun ’15
Reply to Can I AirDrop from one app to another?
I have set the UTI's for document types that my receiver app supports to include PNG files (public.png). When my receiver app is running, and my transmitter app is told to AirDrop a PNG to the receiver device, it appears as though iOS ignores my receiver app and opens Photos regardless; my receiver app should get the openURL: method called at the AppDelegate, but never does. In addition, the Open In... dialog never appears - the PNG file goes straight to Photos.If I specify a custom UTI, then my transmitter will only be able to broadcast to the receiver, which also has to know the custom UTI I've specified. Plus, I would have to change the file extension of the file the transmitter is sending to map the custom UTI to the file extension. This defeats the purpose of being able to transmit a PNG file as a PNG file.I can also transmit the file as raw data, which also defeats the purpose (and similarly requires a custom UTI).What I'm looking to discove
Jun ’15
How should one manage authentication?
Our parent application handles the user login, however we are wondering how we should transfer this data over to the WatchKit extension. To clarify, we have a REST API which serves as a primary interface to retrieve all the user data, however to access this API we requires to use an access token. The problem is, how should the WatchKit retrieve this token which should be kept secret (which is acquired at user authentication in the parent app. and saved in the Key Chain). I assume that any method using the Bluetooth/wi-fi to transfer data (such as openParentApplication:Reply method) would be unsafe as anyone with a packet tracer could easily see the data.Keychain sharing seem like it would not work as I assume in WatchOS2 the iOS and WatchOS file system are seperate.
3
0
460
Jun ’15
Enum's rawValue initializer hidden, sometimes?
Anyone else getting this? It works in a playground but in a normal source file, I'm getting the error. Some others say they can't reproduce it.The error is on line 14: Incorrect argument label in call (have 'rawValue:', expected 'name:')enum Foo : Int { case A, B init?(name:String) { switch name { case A: self = .A case B: self = .B default: return nil } } } let foo = Foo.A let foo2 = Foo(rawValue:2)! // error
2
0
973
Jun ’15
Reply to Cannot logout or change settings in iCloud - OS X 10.11
I had a similar issue - in my case system preferences would hang on trying to access iCloud from its own pref pane or through the accounts pref pane. I solved it by deleting all files from the following folder:/Users/<MY HOME FOLDER>/Library/Application Support/iCloud/AccountsI was then able to get into the iCloud preference pane, where it asked me for my new password. After giving it, all was working again.FWIW, I deleted the files while running OS X from another partition, but that was probably not essential.[Edit]: Based on responses to this, it is necessary to reboot after deleting the files.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15