cocoa Questions

4

Solved

I used to think that folders needed to have an extension so that they are recognized as packages by the Finder. That extension would be declared in the owning application's Info.plist. Obviously t...
Waldowaldon asked 18/11, 2009 at 14:29

5

Solved

I have a NSTextView with a sizeable quantity of text. Whenever I scroll however, the view isn't updated properly. There are some artifacts that remain at the top or the bottom of the view. It appea...
Gasman asked 11/5, 2009 at 19:27

4

Solved

I have a toolbar with various options and some options should not be visible in some cases. I have already figured out a way to disable them in my application, using this callback: - (BOOL) valid...
Gaikwar asked 10/2, 2011 at 22:2

2

Solved

I want to convert NSAttributedString containing RTFD to uppercase without losing attributes of existing characters and graphics. Thanks,
Jemima asked 16/7, 2011 at 10:11

6

I'm making Development tool which needs Git, Heroku, Python, Ruby. So I need package installer to check and install git and heroku toolbelt, if those are not exist. In my guess, I can use package...
Hagioscope asked 8/5, 2013 at 15:22

1

On running the following code: let pid = getAppPid() let AXApp = AXUIElementCreateApplication(pid) var children: CFTypeRef? let returnVal = AXUIElementCopyAttributeValue(AXApp, kAXChildrenAttrib...
Blakey asked 6/11, 2017 at 19:13

4

Solved

I have been following the Handmade Hero project where Casey Muratori creates a complete game engine from scratch without the use of libraries. This engine is highly portable since it renders its ow...
Sophomore asked 4/8, 2016 at 13:25

2

Solved

I've discovered CADisplayLink for IOS 3.1+ which triggers events when the display has been refreshed, effectively allowing you to synchronise with display updates without having to use NSTimer. Is...
Hindquarter asked 6/10, 2010 at 13:28

3

I added the google_mobile_ads sdk v11.6.0 in my swift project. Now when I run the project I get the following error ld: warning: Could not find or use auto-linked library 'swiftXPC': library 'swift...
Corneille asked 26/6 at 8:33

6

Solved

I want to be able to add a button to the title bar of all windows that open on a Mac. The button will go on the right hand side, opposite the X - + buttons. This is asked about windows of my app ...
Custer asked 31/3, 2012 at 12:0

18

I am trying to install the package: cloud_firestore and am getting an error when running the pod install when installing the dependency BoringSSL-GRPC. Is it possible for me to install the dependen...
Viscera asked 5/5, 2020 at 0:29

3

I want to programmatically trigger a 'click' event on my Safari Extension toolbarItem so that my custom popover appears after something happens on the webpage. I'm using the new Xcode extension IDE...
Mendelevium asked 11/11, 2016 at 18:50

4

Solved

When I run the command npx react-native run-ios in my terminal on my Mac I receive the error CompileC /Users/jessicageorge-mannella/Library/Developer/Xcode/DerivedData/AwesomeProject-ctnixtnnzajiwu...
Execrative asked 2/4, 2023 at 2:28

4

I am new to Mac OS X development. In XCode/Cocoa developers environment each Objective-C projects starts with #import <Cocoa/Cocoa.h> It works fine but I am puzzled with Cocoa.h file location...
Umpteen asked 23/11, 2010 at 19:14

4

I'm trying to get my program to recognize a double click with an NSCollectionView. I've tried following this guide: http://www.springenwerk.com/2009/12/double-click-and-nscollectionview.html but wh...
Woodson asked 29/1, 2013 at 1:42

5

Solved

Short and sweet: How can I tell Interface Builder to center a window on a user's screen? I've seen the positioning tool on the inspector, but eyeballing doesn't always land as squarely as I like. I...
Metaphysic asked 6/12, 2009 at 10:44

2

Solved

I'm trying to get an update of the current active (foreground) application. Even across computer screens. I'm using this code to try to do it: print(NSWorkspace.sharedWorkspace().frontmostApplicat...
Prizefight asked 11/9, 2015 at 23:29

7

I want to calculate the histogram of a CGImage. I am using the CIAreaHistogram built-in CoreImage filter. Justin Mrkva has done something along similar lines. He says: I get the CIImage for the...
Cluny asked 1/12, 2014 at 21:5

9

Solved

Is there a simple way to do something like.. [NSMagicDataConverter humanStringWithBytes:20000000] ..which would return "19.1MB"?
Prussia asked 21/2, 2009 at 8:11

3

Solved

Is it possible to strikethrough the text in a label (NSTextField)? I have tried to use the Font Panel, but apparently these are ignored when I try to set them:

4

Solved

How can I create a single installer package for an OS X binary as well as a few configuration and script files? Final folders should look like this: Any help would be appreciated. Thanks.
Kaslik asked 13/1, 2017 at 10:4

6

I can't get scrolling both vertically and horizontally to work with a custom layout for NSCollectionView. According to the docs, in my subclass I return the collectionViewContentSize and if that is...
Porphyrin asked 24/6, 2016 at 14:50

4

Solved

I can open a Terminal tab using the following AppleScript: tell application "Terminal" set myTab to do script "exec sleep 1" get myTab end tell This returns a string like: tab 1 of window id 3...
Aile asked 26/4, 2010 at 10:26

3

As the title tells,now i can simple convert HTML into NSAttributedString with initWithHTML:documentAttributes: , but what i want to do here is reverse. Is there any 3rd party library to achieve thi...
Braze asked 14/3, 2011 at 11:54

5

Solved

The documentation for the Keychain Services API leaves a bit to be desired. One thing that I can't seem to locate are details on accessing the Secure Notes that the Keychain Access app lets you add...
Rumble asked 13/3, 2014 at 6:18

© 2022 - 2024 — McMap. All rights reserved.