Under OS 3.0 CoreGraphics.framework is not available

2009-07-15 Thread Agha Khan
Hi; Under OS 3.0 I am unable to compile this simple code, but it works under OS 2.2.1 Under OS 3.0 CoreGraphics.framework is not available "_CGContextFillRect", referenced from: -[FlipsideView drawRect:] in FlipsideView.o "_CGContextSaveGState", referenced from: -[FlipsideView

Integrating with another app

2009-07-15 Thread Anthony Smith
What's the best way to include an external app's source into and Xcode project? The app I'm using is cross platform, open source, programmed in C and uses a makefile to build. Any suggestions? Anthony smime.p7s Description: S/MIME cryptographic signature _

Re: Integrating with another app

2009-07-15 Thread Graham Cox
On 15/07/2009, at 5:41 PM, Anthony Smith wrote: What's the best way to include an external app's source into and Xcode project? The app I'm using is cross platform, open source, programmed in C and uses a makefile to build. Any suggestions? There's probably no one "best" way, but you have

testing your app on a virtual machine?

2009-07-15 Thread Gevik
Hi, Is there anyway one can install an OSX system on a virtual machine for testing purposes? It is not really practical to purchase extra hardware in order to test your app on a different version of OSX. Any thoughts? ___ Cocoa-dev mailing lis

iPhone cannot compile 2.2 SDK application for 3.0 SDK

2009-07-15 Thread Shraddha Karwan
Hi, I have an application which builds successfully for 2.0 and 2.2 SDK but gives me following errors for 3.0 In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:31, error: syntax error

Re: testing your app on a virtual machine?

2009-07-15 Thread Gevik
but it sill requires me to reboot my development machine to boot it again from another partition/external drive in order to test my app. I guess apple does not want people to run OSX on a virtual machine even if it is for developers to test their applications in different scenarios Paul Franz

Re: iPhone cannot compile 2.2 SDK application for 3.0 SDK

2009-07-15 Thread Graham Cox
On 15/07/2009, at 7:18 PM, Shraddha Karwan wrote: error: syntax error before 'AT_NAME' token error: syntax error before '}' token fatal error: method definition not in @implementation context This looks like you're missing the @end from the bottom of a class definition somewhere. Maybe you

Re: NSError in NSDocument readFromURL

2009-07-15 Thread Chris Miner
Am 13.07.2009 um 00:50 schrieb Konrad Windszus: If I set an NSError in the method readFromURL of my NSDocument, I am not able to overwrite the NSLocalizedDescriptionKey. If have the following code in that method: I guess for the desired (expected?) effect the code should look like: - (BOO

Re: iPhone cannot compile 2.2 SDK application for 3.0 SDK

2009-07-15 Thread Devon Ferns
It seems to be a bug with GCC 4.0. Set the compiler to GCC 4.2 for SDK 3.0 or higher. Devon On 2009-07-15, at 7:07 AM, Graham Cox wrote: On 15/07/2009, at 7:18 PM, Shraddha Karwan wrote: error: syntax error before 'AT_NAME' token error: syntax error before '}' token fatal error: method d

10.4 vs 10.5 SDK - some problems in compilation

2009-07-15 Thread Alexander Bokovikov
Hi, All, I'm rather new in XCode and Cocoa, so maybe it's my misunderstanding. Am I correct in my understanding, that I need to select 10.4 SDK in XCode project menu to create an application, compatible with both Tiger and Leo? I've got few errors in compilation when I choose 10.4 SDK. Some

Removing an NSOpenGLView causes default background to be drawn.

2009-07-15 Thread Marc Van Olmen
Hi, When I remove and NSOpenGLView or when I close a window that has an NSOpenGLView that area is drawn over with his default background color (in my case this is Black). This only happens depending on how long it takes to replace or close that window. I can see it in my app when I quit bec

Re: 10.4 vs 10.5 SDK - some problems in compilation

2009-07-15 Thread Steve Christensen
On Jul 15, 2009, at 5:10 AM, Alexander Bokovikov wrote: I'm rather new in XCode and Cocoa, so maybe it's my misunderstanding. Am I correct in my understanding, that I need to select 10.4 SDK in XCode project menu to create an application, compatible with both Tiger and Leo? I've got few err

Re: testing your app on a virtual machine?

2009-07-15 Thread Todd Heberlein
Is there anyway one can install an OSX system on a virtual machine for testing purposes? Check the EULA for Mac OS X Server. I think you can run that under a VM, and I think VMWare has support for it in either the current or future version. Todd __

Re: NSSocketPort initRemoteWithTCPPort is never valid

2009-07-15 Thread Kirk Kerekes
An NSSocketPort is intended for use with Distributed Objects and NSConnection or, at least, to communicate with another NSSocketPort at the other end. The documentation used to state this, possibly erroneously. It no longer does so: "NSSocketPort is a subclass of NSPort that represents a BSD

QuickLook

2009-07-15 Thread David Blanton
Thanks to all for help with my QuickLook generator! The generator works when installed in ~/Library/QuickLook but not in /Library/QuickLook Do I need to do something else to install in Library/QuickLook and have it work? ___ Cocoa-dev mailing l

Re: QuickLook

2009-07-15 Thread Sean McBride
On 7/15/09 10:53 AM, David Blanton said: >Thanks to all for help with my QuickLook generator! > >The generator works when installed in ~/Library/QuickLook > >but not in /Library/QuickLook > >Do I need to do something else to install in Library/QuickLook and >have it work? Did you know there is a

Re: IKImageBrowserView only horizontal scrolling

2009-07-15 Thread arri
Hi, This tip looks simple enough, and it works to a certain extent. But moving the scaling-slider or resizing the window, results in very buggy display for me. This is both the case with my own prototype app, as with apple's Image Browser example code (set to use NSViewWidthSizable). Two screens

Re: IKImageBrowserView only horizontal scrolling

2009-07-15 Thread Thomas Goossens
Hi Arri, This is a bug (fixed on SnowLeopard). On Leopard, when the content resizing mask is set to NSViewWidthSizable (for banners typically) only layouts with a single row are supported. -- Thomas On Jul 15, 2009, at 7:05 PM, arri wrote: Hi, This tip looks simple enough, and it works

Dictionary interface

2009-07-15 Thread Phillip Mills
I've been searching the Cocoa documentation pages on extending and interfacing with Apple applications, hoping to find notes related to the Dictionary application. An API that finds words using a soundex-type function would be nice. That, plus a plugin method to add a UI item similar to "Dict

Re: Under OS 3.0 CoreGraphics.framework is not available

2009-07-15 Thread David Duncan
You need to add the CoreGraphics.framework to your project. On Jul 15, 2009, at 12:02 AM, Agha Khan wrote: Under OS 3.0 I am unable to compile this simple code, but it works under OS 2.2.1 Under OS 3.0 CoreGraphics.framework is not available "_CGContextFillRect", referenced from: -[Fli

Re: Dictionary interface

2009-07-15 Thread Greg Guerin
Phillip Mills wrote: I've been searching the Cocoa documentation pages on extending and interfacing with Apple applications, hoping to find notes related to the Dictionary application. An API that finds words using a soundex-type function would be nice. That, plus a plugin method to add a

Re: NSSocketPort initRemoteWithTCPPort is never valid

2009-07-15 Thread Ken Thomases
On Jul 15, 2009, at 11:49 AM, Kirk Kerekes wrote: An NSSocketPort is intended for use with Distributed Objects and NSConnection or, at least, to communicate with another NSSocketPort at the other end. The documentation used to state this, possibly erroneously. It no longer does so: "NSS

Re: Dictionary interface

2009-07-15 Thread Phillip Mills
- Message from glgue...@amug.org - You might want to explain exactly what you tried. Sure. http://developer.apple.com/reference/Cocoa/idxAppleApplications-date.html Since I'm not really interested in spell checking, but rather another Dictionary-based service it seemed like a

Re: IKImageBrowserView only horizontal scrolling

2009-07-15 Thread arri
Thomas, Thanks for the fast respons! Saves a lot of headaches. .arri On Wed, Jul 15, 2009 at 7:23 PM, Thomas Goossens wrote: > Hi Arri, > > This is a bug (fixed on SnowLeopard). > On Leopard, when the content resizing mask is set to NSViewWidthSizable (for > banners typically) only layouts with

Re: Dictionary interface

2009-07-15 Thread Greg Guerin
Phillip Mills wrote: Sure. http://developer.apple.com/reference/Cocoa/ idxAppleApplications-date.html Since I'm not really interested in spell checking, but rather another Dictionary-based service it seemed like a page that describes how "developers can have their applications interact wit

Re: testing your app on a virtual machine?

2009-07-15 Thread Anthony Smith
The current version of VMware Fusion has at least experimental support for OS X Server. Sent from my iPhone On Jul 15, 2009, at 12:18 PM, Todd Heberlein wrote: Is there anyway one can install an OSX system on a virtual machine for testing purposes? Check the EULA for Mac OS X Server.

Re: Integrating with another app

2009-07-15 Thread Anthony Smith
Thanks for the advice. I currently have the external app added to my project as an external target which works well with the makefile. Is it possible to use a makefile with a dynamic or static library or will I have to translate the makefile into something else? On Jul 15, 2009, at 4:01 AM,

Efficiency of loading Localizable.strings and NSUserDefaults

2009-07-15 Thread Development
This is not a "help, the code doesn't work" question, but more a general question to help one write better Cocoa code. Imagine my program requires a large amount of localizable strings. In many cases (ex. error codes), I have a string associated with an integer value. For some of these, I

Plain Text Kind

2009-07-15 Thread David Blanton
I posted to QuickLook list but it does not seem very active so indulge me please .. When my files are show in Finder their Kind is Plain Text. I have set a Description in my UTI declarations which the docs sat is user visible. Do I need to something more?

Re: Efficiency of loading Localizable.strings and NSUserDefaults

2009-07-15 Thread Douglas Davidson
On Jul 15, 2009, at 1:45 PM, Development wrote: Is this true? When I invoke -localizedStringForKey:value:table: (or the other variations of NSLocalizedString), is the entire Localizable.strings file read into memory? Is it thrown away at the end of the call? Or is the localized version of

Reference Count Underflow when Writing PDF

2009-07-15 Thread K . Darcy Otto
I have a PDF that I've loaded, combined with another PDF, and now I'm ready to save the result as a new file. My program is using garbage collection, but I understand that PDFKit is not garbage collected. The problem is that I get reference count underflow error when writing the PDF. Her

Re: Plain Text Kind

2009-07-15 Thread Sean McBride
On 7/15/09 2:49 PM, David Blanton said: >I posted to QuickLook list but it does not seem very active so indulge >me please .. You've only waited 50 minutes! Even paid support is not usually that fast. Also, you're message's subject is not very descriptive. May I politely suggest you read:

Japanese Language

2009-07-15 Thread Development
Ok, I lucked out and got a great chance at releasing a bit of software in japan. The problem is that it is 50/50 client to web. My primary concerns are string translation from iPhoneOS to data being stored in a mysql database. I have spent quite a bit of time googling and am still not sure

Re: Use Cocoa in QL Generator

2009-07-15 Thread Kiel Gillard
Sorry, I thought I remember reading in the Quick Look documentation the steps required to write code with and link it against the Cocoa framework. Starting with a Quick Look Plugin Template in Xcode, - Choose from the menu bar Project > Add to Project... and add the framework /System/Librar

Re: NSSocketPort initRemoteWithTCPPort is never valid

2009-07-15 Thread Adam R. Maxwell
On Jul 15, 2009, at 11:19 AM, Ken Thomases wrote: On Jul 15, 2009, at 11:49 AM, Kirk Kerekes wrote: An NSSocketPort is intended for use with Distributed Objects and NSConnection or, at least, to communicate with another NSSocketPort at the other end. The documentation used to state this,

Re: Use Cocoa in QL Generator

2009-07-15 Thread David Blanton
Yep, that's it ... and since I am using c++ as well my files are .mm On Jul 15, 2009, at 4:57 PM, Kiel Gillard wrote: Sorry, I thought I remember reading in the Quick Look documentation the steps required to write code with and link it against the Cocoa framework. Starting with a Quick Lo

Re: Core Data debugging

2009-07-15 Thread tmowlem
Hello, On 14 Jul 2009, at 10:01 PM, Fritz Anderson wrote: > On 14 Jul 2009, at 5:14 PM, Tim Mowlem wrote: >> BOOL result = [moc save: &err]; .. >> The problem is that every time I call this method the result is NO >> implying a failure when saving. .. >> The issue for this post is that wh

Re: Japanese Language

2009-07-15 Thread Ricky Sharp
On Jul 15, 2009, at 5:36 PM, Development wrote: Ok, I lucked out and got a great chance at releasing a bit of software in japan. The problem is that it is 50/50 client to web. My primary concerns are string translation from iPhoneOS to data being stored in a mysql database. I have spent qu

Re: Reference Count Underflow when Writing PDF

2009-07-15 Thread K. Darcy Otto
In an effort to get out of this problem, I also thought I might just take a data representation of the PDFDocument object, and write the data to a file. I get the same problem. Here is what I tried, substituting for "[savedDoc writeToFile:@"newFile.pdf"]" below: NSData *myData = [savedDoc

Re: Dictionary interface

2009-07-15 Thread Graham Cox
On 16/07/2009, at 3:26 AM, Phillip Mills wrote: I've been searching the Cocoa documentation pages on extending and interfacing with Apple applications, hoping to find notes related to the Dictionary application. An API that finds words using a soundex- type function would be nice. That, pl

Re: Efficiency of loading Localizable.strings and NSUserDefaults

2009-07-15 Thread Graham Cox
On 16/07/2009, at 6:45 AM, Development wrote: Anyone has some comments or ideas about this? Possibly someone with some inner understanding of how localized strings are read? Optimise later. You are fretting about the speed of loading strings to the point where you are considering your

[iPhone] Encrypting data of an iPhone Application / Converting J2ME App functionality

2009-07-15 Thread Tharindu Madushanka
Hi, I am still learning iPhone application development and I want to convert a J2ME trading client application to an iPhone SDK application. I have already developed an iPhone application that did not have any encryption published at Apple AppStore. I have good knowledge with J2ME so I could under

Re: Printing a View [solved]

2009-07-15 Thread K. Darcy Otto
Thanks Matt, for the advice. I followed your links, and found the best way, for me at least, to print what I wanted was to create a view in IB, populate a custom view with text fields and tables, and then resize that view for printing. For those who are working on a similar problem, I crea

Re: Printing a View [solved]

2009-07-15 Thread Graham Cox
On 16/07/2009, at 2:23 PM, K. Darcy Otto wrote: There is probably some more efficient way to check where the page should be broken, but the above implementation works just fine. Working code is always worth much more than theoretical code, but if your table has a constant height per row,

Re: Japanese Language

2009-07-15 Thread Greg Guerin
Ricky Sharp wrote: As for the transport, I would highly recommend UTF-8 as no byteswapping is needed. For most Latin-based data, the number of bytes taken up in UTF-8 will be less than what is used by UTF-16. For Japanese (and many other languages), the number of bytes of UTF-8 will be mo

Creating methods with variable length arguments terminated by nil

2009-07-15 Thread Graham Cox
Hi all, I want to add the following category method to NSString: - (BOOL) isEqualToAnyStringIn:(NSString*) firstString, ... NS_REQUIRES_NIL_TERMINATION; I've used some of Cocoa's headers for examples of how to declare this, as above, but I'm not sure how the actual implementation should g

Re: Creating methods with variable length arguments terminated by nil

2009-07-15 Thread Stephen J. Butler
On Thu, Jul 16, 2009 at 12:36 AM, Graham Cox wrote: > I want to add the following category method to NSString: > > - (BOOL)  isEqualToAnyStringIn:(NSString*) firstString, ... > NS_REQUIRES_NIL_TERMINATION; > > I've used some of Cocoa's headers for examples of how to declare this, as > above, but I'

Re: Creating methods with variable length arguments terminated by nil

2009-07-15 Thread Graham Cox
On 16/07/2009, at 3:42 PM, Stephen J. Butler wrote: On Thu, Jul 16, 2009 at 12:36 AM, Graham Cox wrote: I want to add the following category method to NSString: - (BOOL) isEqualToAnyStringIn:(NSString*) firstString, ... NS_REQUIRES_NIL_TERMINATION; I've used some of Cocoa's headers for exa