Cocoa is Apple's application-development framework for Mac OS X, consisting of Foundation, Application Kit, and Core Data. Use the "cocoa-touch" tag for iOS questions.

learn more… | top users | synonyms

2
votes
1answer
22 views

nswindow can't be centered

I tried to center the position of the main window of my app, using in the first time Automatic Initial Position in IB, and then using [window center] but my app appears at the last location it was ...
0
votes
1answer
16 views

-[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (myCustomClass)

I'm new to objective-c and cocoa, and trying to create a document based application that saves and loads a custom class to and from the filesystem. My custom class that conforms to nscoding protocol ...
1
vote
0answers
12 views

Control LCD backlight on OS X beyond system API

Apple's has I/O kit (via IODisplaySetFloatParameter) allows you to set the display brightness within a given range. However, I remember my prior laptops being significantly dimmer at the lowest ...
0
votes
0answers
7 views

Creating a windowless menu-bar icon application in Monomac/Xamarin C#

I am attempting to create an application in MonoMac/Xamarin.Mac that does not have a dock icon, nor a visible window when it launches and only an icon in the top-right menu bar. I have set ...
0
votes
1answer
8 views

com.apple.security.files.bookmarks.app-scope is missing from the entitlement key?

in my cocoa app I have this entitlement: com.apple.security.files.bookmarks.app-scope added to my .entitlement When I submit this app to the mac app store, I was asked to add entitlement. I click on ...
-2
votes
0answers
21 views

Currency from string with NSNumberFormatter

I am just trying to convert a string from a text field representing a value of currency into a float ($12.50). Padding with zeros is of course necessary. I just can't make this work... If anyone had a ...
0
votes
1answer
19 views

Navigation controller in Mac app, similar to iOS app?

I'm looking to make a Mac app with a navigation controller similar how Growlvoice does theirs. By that, I mean I want my mac app to have a header. When clicking an item in a TableView, it will ...
0
votes
1answer
28 views

How Make A Constantly Growing Text File

I have an app that is collecting data from user inputs on a pretty regular basis. I'm writing the data to a text file and saving it to the disk. I usually call writeToFile:, but the issue with that is ...
-2
votes
1answer
17 views

Drawing freehand-like pencil lines [on hold]

What is the best algorithm to draw lines that resemble freehand pencil drawing -- e.g. sketch lines? I’d prefer at least modest efficiency. If platforms matter, I'm targeting Quartz/OS X with half ...
0
votes
1answer
32 views

awakeFromNib called multiples times

I have an NSViewController associated to a NIB, which itself contained some NSView and NSButton. I was using awakeFromNib to initialize some model classes. It worked just fine, until I added a ...
0
votes
0answers
17 views

cocoapod + apple framework dependency

I've made a podspec file to allow my co-workers start their project easier. My podspec is supposed to set apple framework dependency such as : s.frameworks = 'CoreText', 'CoreGraphics', 'QuartzCore' ...
0
votes
1answer
9 views

View Switching: Unrecognised selector sent to instance

I made some example that changes view by clicking button. When clicking the "fist" button in view, I keep getting the error: [__NSArrayM changeLogView:]: unrecognized selector sent to instance ...
0
votes
0answers
8 views

subview of layer backed nsview clipped

I have a subview of an layer backed nsview (set through storyboard) which exceed the bounds. For some reason it is getting clipped. Any idea why this is happening ?
0
votes
1answer
12 views

Odd behavior in NSViewController

I've started a tiny project to get my head around NSViewControllers. I have an AppController that handles a NSOpenPanel. Once I get a URL to a movie file, I pass it to a NSViewController subclass ...
0
votes
0answers
7 views

When printing from a cocoa statusbar application, the “save as pdf” does nothing

I have an app that has no main window. It lives in the status bar, and from it I can open various windows. From one of these windows I can print a report. I am using NSPrintOperation to accomplish ...

1 2 3 4 5 1718
15 30 50 per page