I'm currently running into some problems when creating an NSAttributedString that displays the ruby annotation for a string. var reading = [.passRetained(ねこ) as Unmanaged<CFStringRef>?, .None, .None, .None] let annotation = CTRubyAnnotationCreate(.Auto, .Auto, 0.5, &reading) as CTRubyAnnotationRef let attributed = NSAttributedString(string: 猫, attributes: [ NSFontAttributeName: font, NSVerticalGlyphFormAttributeName: verticalLayout, kCTRubyAnnotationAttributeName: annotation.takeUnretainedValue() ])This is giving me the error that CTAnnotationRef doesn't have a member named takeUnretainedValue.Has there been a change in swift or iOS 9 that now means the code doesn't work as expected? Also, is there a better way I could be creating the NSAttributedString?The code above works fine under swift 1.2 / iOS 8.Thanks,Matt Delves
Search results for
DTiPhoneSimulatorErrorDomain Code 2
158,659 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
> Is this possible now ? Planned for future Swift 2.x version ?I hope so - I was just trying to do exactly that, too.For the moment I worked around it by using separate getXXX and setXXX methods instead of having a computed property. But that's not ideal
Topic:
Programming Languages
SubTopic:
Swift
Tags:
Using the OSX Cisco VPN without issue.Photoshop CS6, Lightroom 5, Office 2011 and 2015, Sublime Text 3, Atom, Codekit 2, GitTower 2, all work fine.New Messages, Mail, iOffice apps fine.
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Hi everyoneWhen the final version is released to the public of watchOS 2, how will the update work from the GM?Usually, on iOS when upgrading from the GM to final, you download the APK off itunes servers, plug it into itunes and update it.On Mac, you just redownload the installer from the app store and install it.How will this work on watchOS since you cannot use a manual file and im guessing it wont read the full update from a GM if you know what im trying to say 🙂
Swift app converted to Swift 2, it seems that many of my NSLog calls are now crashers. Stuff as simple as:NSLog(Moving File from ((originalURL)) to ((updatedURL)))Where both URLs are NSURLs... Crashes with EXC_BAD_ACCESS inside NSLog. I guess it's Radar time!
Ugh, not good. I'll have to update two apps.
Topic:
App & System Services
SubTopic:
General
Tags:
Hello everyone,I'm getting the old SourceKit errors I used to get every now and then with the Xcode 6/iOS8 beta, but now on iOS 9/Xcode 7.In the Console.app I can see that the SourceKitService closes with SEGMENTATION FAULT CODE 11.Any fix you guys found? Suggestions?
Found a solution that worked for me:Yes. First, download gdisk (URL in the OP) and run the installer package. Then run gdisk from a terminal window and run the v (verify command). If verify indicates no problems, then you're good to go and can just type q to quit. However, if it shows something like this, then you have the problem:sudo gdisk /dev/disk0Command (? for help): vWarning! Mismatched GPT and MBR partition! MBR partition 4, of type 0x07, has no corresponding GPT partition! You may continue, but this condition might cause data loss in the future!Identified 1 problems!Next, display the MBR partition table and make note of the start and end sectors for your BOOTCAMP partition. This should be partition 4 unless you've added additional partition(s), which is not officially supported by Boot Camp. It should show something like this:Command (? for help): rRecovery/transformation command (? for help): oDisk size is 1953525168 sectors (931.5 GiB)MBR disk identifier: 0x7C170CB2MBR partitions:Number Boot Start
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Found a solution that worked for me:Yes. First, download gdisk (URL in the OP) and run the installer package. Then run gdisk from a terminal window and run the v (verify command). If verify indicates no problems, then you're good to go and can just type q to quit. However, if it shows something like this, then you have the problem:sudo gdisk /dev/disk0Command (? for help): vWarning! Mismatched GPT and MBR partition! MBR partition 4, of type 0x07, has no corresponding GPT partition! You may continue, but this condition might cause data loss in the future!Identified 1 problems!Next, display the MBR partition table and make note of the start and end sectors for your BOOTCAMP partition. This should be partition 4 unless you've added additional partition(s), which is not officially supported by Boot Camp. It should show something like this:Command (? for help): rRecovery/transformation command (? for help): oDisk size is 1953525168 sectors (931.5 GiB)MBR disk identifier: 0x7C170CB2MBR partitions:Number Boot Start
Topic:
App & System Services
SubTopic:
Core OS
Tags:
My issue is that I want my activity data from my backup of my phone on iOS 8.3. I didn't think of not being able to continue that activity data when upgrading to iOS 9 and watchOS 2. Any suggestions?
Here's the working code: let bundle = NSBundle.mainBundle() let path = bundle.pathForResource(Model, ofType: obj) let url = NSURL(fileURLWithPath: path!) let asset = MDLAsset(URL: url) let scene = SCNScene(MDLAsset: asset)Step 1) Get the path of the model fileStep 2) Load the file into a MDLAssetStep 3) Create a SCNScene with the asset (alternatively you can find the model inside the asset and add it to an existing scene)
Topic:
Graphics & Games
SubTopic:
SceneKit
Tags:
Seems like 🙂. But as the data is still there I hope we'll get the 2 days back on a future release 😉
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Apple is a user, just like us, when it comes to their contractor supplied forum software, which is typically from JIVE Software (Portland). JIVE tends to supply for Windows and open source, so when it comes to migrating anything, that's another checkbox on the option li$t. Witness the old forums now archived and locked. That option is carries the least overhead and co$t, after all.Migrating comments with intact threads from one format to another is rarely trivial/pretty, especially when the source is old and the new format is yet again proprietary. Migrating users is same only different.And since the old rep counter was broken...good riddance, I say. I've lost track of how many times I've seen counters restart for various Apple forums, so it's just another day online for me.The drivers for new forum software never included much value from old threads which primarily dealt with outdated code, tools, diluted/duplicate threads, etc. I suspect emphasis was placed on search, where users are nudged to do t
Topic:
Developer Tools & Services
SubTopic:
Developer Forums
Tags:
I live in Providence, R.I....yet the Apple Watch keeps pulling up weather for South Atlantic Ocean as the default location.It makes zero sense because I can't even search for that in the normal weather app. Also I wouldn't be located in the South Atlantic. When I restart the watch, it stays as Providence for maybe a half our or so then reversts back. This also seems to be killing the battery at about 10% an hour which is awful . I used to put the watch on the charger with 30-40%, and I've already had to charge it twice today.Anyone else have this weird glitch? Beta 2 can't come soon enough because I can't downgrade. As goes the life of a developer with beta software.
When you mention the line below, do you mean the following.You should define a property or method on the destination VC that says here is the data to be displayed.When the delegate call back method is called, I am currently writing the line of code below.self.feedViewController!.feedsTableView.reloadData()Since this is reloading a tableView in another VC you mentioned this was not ideal. Instead, would the following logic make more sense.In the home VC I would instead write.self.feedViewController!.updateTableView()Then in the FeedVC where the tableView resides I would perform the following in the updateTableView() method.func updateTableView() { self.feedsTableView!.reloadData() }I hope this is clear. Take care,Jon
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: