Search results for

NSCocoaErrorDomain Error Code 4

170,051 results found

Post

Replies

Boosts

Views

Activity

Reply to Install problems
I have the same error and Filevault is not enabled. I found several troubleshooting threads regarding 10.10 that used diskutil commands but that do not work either. The problem may be similar but I can't find a way around it.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to iOS 9
The solution by gpdawsonJun 8, 2015 7:37 PMI would guess thay means that your *primary* email address is still failing verification. Try to re-verify it. Do you see an error message? If so, then you may have that email address associated with another Apple ID - perhaps with an Apple ID that is the same as that email address. In that case you'd need to log into that Apple ID, delete the primary email for it, and provide a new, different email address to verify it with.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
How does a view controller call functionality of a view (how is the link made?)
I have a view controller, I want to action something on the view by calling a method in the view. But I get the errorfatal error: unexpectedly found nil while unwrapping an Optional valuebecause the view object isnt set. There are a couple of issues here, firstly I assume I am with MVC allowed to control the view from the view controller? Secondarily am I missing some association between the two, maybe on the storyboard? or do I set it up another way...Sorry for the basic question, but sometimes I get a bit lostKind regardsMark
2
0
413
Jun ’15
Swift Example Code
Just learning Swift and I noticed that Apple's example code on the Swift homepage does not compile in playground! I mean really, am I missing something?https://developer.apple.com/swift/extension String { var banana : String { let shortName = String(dropFirst(characters)) return (self) (self) Bo B(shortName) Banana Fana Fo F(shortName) } } let bananaName = Jimmy.bananaI changed line 03 to: { let shortName = String(dropFirst(self))This seems to work. I tried to find feedback and let them know, but there seems to be no place for developers to provide simple feedback.
4
0
845
Jun ’15
Safari crashing
Safari was working just fine until I rebooted. Now it crashes. This is on a Imac. I am also running the beta on my Macbook Pro and it is fine there. One the imac I am getting an error message about java not working but not on the Macbook pro. Anyone else having this kind of problem..
1
0
355
Jun ’15
Reply to I want to put bordercolor with uiview by swift.
Thank you.I probably resolved this problem.'User Defined Runtime Attributes' was good clue for me.I tried the following code by referencing https://www.weheartswift.com/make-awesome-ui-components-ios-8-using-swift-xcode-6/@IBDesignableclass BorderView: UIView { @IBInspectable var cornerRadius: CGFloat = 5 { didSet { layer.cornerRadius = cornerRadius layer.masksToBounds = cornerRadius > 0 } } @IBInspectable var borderWidth: CGFloat = 1 { didSet { layer.borderWidth = borderWidth } } @IBInspectable var borderColor: UIColor? = UIColor.blueColor() { didSet { layer.borderColor = borderColor?.CGColor } }}if i tried above file on another project,it ran correctly.if i couldn't run correctly another project,i would write it.Thank you.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jun ’15
Swift: Subclassing NSNotification
Hello everyone,Has anyone figured out a way to subclass NSNotification using Swift? I've done this in the past with Objective-C, but haven't figured out how to accomplish this with the rules for initializers in Swift. I realize there are alternatives to subclassing, but I'd really like to figure out how to do this. Here is a simplified version of what I'm attempting to do:class MyNotification: NSNotification { var someCustomData: String = override var name: String { return } override var object: AnyObject? { return nil } override var userInfo: [NSObject: AnyObject]? { return nil } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) } init(someCustomData: String) { // Compiler wants me to call super.init, but this causes // issues since NSNotification is a class cluster. } }If I try calling super.init or using one of the NSNotification initializers when I instantiate an instance of MyNotification, I get this error:*** initialization method -initWithName:object:userInfo: cannot be s
Topic: UI Frameworks SubTopic: AppKit Tags:
2
0
1.3k
Jun ’15
iOS 9 side-switch behavior
In iOS 9 beta 1, there is a Use Side Switch To: preference allowing selection of Lock Rotation or Mute, similar to iPad. As a user, I expect to enjoy this feature as I don't personally have a need to quickly disable the mute feature, but often want to lock my phone in portrait mode when reading. However, I'm noticing two immediate differences that could affect app interaction design, and I wonder if only one is deliberate.1) Rotation lock, when controlled by the side switch, behaves like previous iPhone on-screen controls in that it locks vertically. From a development perspective, that means developers should continue to implement their own controls to force landscape when necessary. YouTube provides a good example of this with their full screen control, whereas many creative apps have only a landscape mode.2) Mute is not available in Control Center, leaving no clear ability to acheive the mute functionality the side switch has toggled since the original iPhone. iPad has had this preference available since i
1
0
1.3k
Jun ’15
Playgrounds running forever
Hello all, I've just created a new playground to test drive the new GameplayKit and I can't seem to get the playground out of a continuous running playground that never ends.Just for kicks, I deleted my code and replaced it for the one that comes by default (the hello playground stuff) and it has still not finished running.Should I file a radar?Has anyone experienced this?Thanks!
1
0
1.2k
Jun ’15