Questions tagged [mac-frameworks]

20 questions
5
votes
1 answer

How can I remove headers from my custom frameworks?

I have a Mac Cocoa application that uses several custom frameworks. (Apple calls them private, it’s the frameworks that get distributed in the app bundle with your application.) Inside each framework there is a Headers folder with the framework’s…
zoul
  • 102,279
  • 44
  • 260
  • 354
4
votes
1 answer

Cocoa best practice for architecting a custom framework which requires an Apple framework

Let's say I've got a custom framework with a dozen classes and categories. They all inherit from/extend standard cocoa classes. For this reason, my framework links to < Cocoa > during compile. My question is, if I add a class which requires <…
SG1
  • 2,871
  • 1
  • 29
  • 41
4
votes
1 answer

How to use macOS/OS X Frameworks in go

For example, how to use CoreGraphics and CoreFoundation to manipulate the screen and process data on macOS.
Kesarion
  • 2,808
  • 5
  • 31
  • 52
4
votes
1 answer

Swift shared libraries getting statically linked for command-line apps?

I'm trying to use an external framework with my Swift application for Mac OS X. The external framework also uses Swift, and so depends on the Swift shared libraries (for example, libswiftCore.dylib). This is verified by the command $ otool -L…
3
votes
1 answer

Core Data EXC_BAD_ACCESS fail on save?

My Core Data model just won't save. I can insert one kind of object (Graph - see below) to it, and saving will work. I can add multiple copies of that kind of object and saving will work. When I insert a different object, any one, it fails, usually…
3
votes
1 answer

Organising frameworks for client, server, and plugins

I am working on a large project that comprises a server, some plugins for controlling devices that can be loaded into the server process, and also clients that can connect to the server. I am looking for the best practice for structuring the…
OzBandit
  • 1,044
  • 7
  • 14
2
votes
1 answer

Why is Frameworks/MyFramework.framework/ in my xcode project empty?

I'm new to xcode and cocoa. According to the Framework Programming Guide, there is a certain directory structure that I should follow when making a framework. I recently started a framework project using xcode, and was surprised to find that this…
Ziggy
  • 21,845
  • 28
  • 75
  • 104
2
votes
1 answer

Comparing Qt4 with Cocoa

I'm on the beginning slope of learning Mac programming and in particular Cocoa. It seems to be a comprehensive framework providing all kinds of things every app programmer needs. Qt4 is the same sort of thing at a general level, except it runs on…
DarenW
  • 16,549
  • 7
  • 63
  • 102
2
votes
1 answer

Edit methods from frameworks

I want to implement the Identity Picker sheet from the Collaboration.framewwork but I want to remove some functions (Add User & Address Book). Is that possible? If yes how?
Samantha Catania
  • 5,116
  • 5
  • 39
  • 69
2
votes
1 answer

Obj-C/Cocoa: Use of Shortcut Recorder Framework, how?

to capture keystrokes for registering global hotkeys i want to use the shortcut recorder. but i can't get it to work. here is what i have done so far: checked out the current version from the svn installed xcode 3 because my xcode 4 wouldn't build,…
Eike Cochu
  • 3,249
  • 7
  • 34
  • 57
2
votes
0 answers

How to build WineLib for Mac OS X 10.6 and link it with XCode project?

Please forgive me for a stupid lame question, but I can't find even minimal documentation... It seems that only Wine is covered. Should I use the Wine sources to build Winelib? Is my assumption correct that I can create a Winelib framework by…
Ryan
  • 1,451
  • 2
  • 27
  • 36
2
votes
1 answer

Qt: Linking Framework on Mac: using rpath

I want to create a custom framework with Qt. I am able to create the framework itself, but Qt fails to find the framework when run: dyld: Library not loaded: QSettingsDialog.framework/Versions/0/QSettingsDialog Referenced from:…
Felix
  • 6,885
  • 1
  • 29
  • 54
1
vote
1 answer

How to enable location services for CoreWLAN pyobjc wrapper to get bssid?

I'm using pyobjc wrapper to scan for networks: import objc objc.loadBundle( "CoreWLAN", bundle_path="/System/Library/Frameworks/CoreWLAN.framework", module_globals=globals() ) from CoreWLAN import CWNetwork, CWWiFiClient client =…
1
vote
1 answer

Copied Cocoa Framework searches /Library/Frameworks/... only. How can I make it search binary within itself?

I made a Cocoa Framework with dynamic library. This library contains C functions. I copied the framework into other project, compiled well, but when running it crashes with message like this. warning: Unable to read symbols for…
eonil
  • 83,476
  • 81
  • 317
  • 516
1
vote
1 answer

I installed python 2.7.3 via brew,but virtualenv always use 2.7.1,why?

The system default python is: $ /usr/bin/python --version Python 2.7.1 my $PATH is export PATH=/opt/local/bin:/opt/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin I installed python 2.7.3 via homebrew, $ brew…
iMom0
  • 12,493
  • 3
  • 49
  • 61
1
2