this is my code and i want use this object to show loading progress,what should i do?
// view.h
#import <Cocoa/Cocoa.h>
#import<WebKit/WebKit.h>
@interface view : NSObject {
IBOutlet WebView* webview;
}
-(IBAction) google:(id) sender;
@end
//view.m
#import "view.h"
@implementation view
-(IBAction) google:(id) sender
{...
I have a document-based application but I am not using undo. How do I change the status of my window to be 'dirty' and certain times?
Thanks.
...
The only full-fledged GPL Cocoa editor for GEDCOM 5.5 files (GenerationX) was last released in 2003: http://sourceforge.net/projects/generationx/
It looks unstable under Snow Leopard and would badly need a revamp.
Someone recently posted a proof-of-concept application (unrelated to GenerationX) on Google Code, but it looks like an unmai...
Hi everybody.
I'm going crazy with this my little app... Please help me!!!
this is the source code of the app: Smoking.zip
It only saves a .dat file with an NSMutableArray.
Now, the first time you will launch the app, try to click the cigarette button sometimes: Everything should working fine.
Ok, now close the app, re-open it, and cl...
I looked for this on the internet but could not find anything. Is there any MSN framework or library? I would like to use it for a Cocoa project.
Thanks in advance.
—Albé
...
I have class called AppController which contains a mutable array of Person objects called people. Each person simply has an NSString and a float.
I also have an NSArrayController whose contentArray is bound to the people array in AppController. Then I have the usual setup of a table view bound to the array controller to show a list of ...
I want to detect the very first time my view is displayed. After that, I wan't to forget about it. Where can I set a BOOL to do this?
...
How can i get the NSMenu or NSMenuItem for the application menu (the one in the menu bar next to the apple menu). It seems to be automatically created and independent from the NSMenu i set via NSApplication setMainMenu.
By the way: I'm building my complete application without XCode, so please no InterfaceBuilder tips.
PS: MacOSX 10.5
...
I'm using XCode 3.1.4, on OSX 10.5, targeting same. In Ch. 33 we're asked to drag an NSOpenGLView and an NSSlider onto the IB library, and then do Layout -> Embed Objects in ->
Matrix. Except the Matrix option is always disabled.
What do I have to do to enable the matrix?
...
In the opengl section of Hillegass' otherwise fine book, we're given sample code for drawing a 3d object on a view. Two people at the book's discussion forum at http://techstra.bignerdranch.com/ have reported that the drawing code runs, but fails to draw the object. I'm getting the same result, and the only discussion I've found resolv...
Just a simple question on NSStrings, I have a piece of code that assigns a value to a string, depending on what is found it is either assigned a value by substringToIndex or the constant string @"0.00", is it okay to use
// Save if value found, otherwise set to 0.00
if (parsedCharacters == nil || [parsedCharacters isEqualToString:@""])
...
I'm having an issue with a string which is being returned from a webservice. I am setting the string up in the header file, simple with
NSString *serviceUserID;
@property (nonatomic, retain) NSString *serviceUserID;
then I'm synthesizing it as normal. I can set it using
serviceUserID = @"4fffrdscfbg-44-06dfgf-dfgdfg-32eer456134";
b...
In interface builder for xcode 3.2 NSWindow had property content border to set something like a 'footer' for the app, does anyone know where is it in xcode 4 interface builder?
Thanks for help.
...
Hey experts,
When I drag rows from an NSTableView to another NSOutlineView, the NSOutlineView gets a yellow highlighting border. How do I avoid that?
To be precise, this happens only if I drag the rows from the table into the free space (i.e. not on any items) of the NSTableView. However, when I drag the rows directly on items in the N...
Hi,
I have this idea of having some kind of "badges" in my app. They should be clickable, have an image and a label. That's the easy part. But I also want them to have this little help button in the upper right corner which is also clickable. The help button should just be an image and should of course also be clickable. What would be t...
I'm creating a CGImageRef out of, in one case, a TIFF file, through a CGImageSource, in another case raw bitmap data via a CGDataProvider and in another case, from a PDFPage via an NSImage. I need to know the resolution of the CGImage. Is there an easy way to find this out?
in the PDFPage case, I should be able to get the pixelwidth and...
I'm trying to understand NSString's and the complexities regarding composed character sequences. I'm having troubles creating strings containing these composed character sequences for me to be able to play around with them.
I've seen the Unicode list of sequences but I'm unable to find these characters in the Mac OS X character selecto...
Hi guys!
How to set size of NSWindow relatively to the height of NSTextField ?
...
I'm trying to retrieve the public and system IDs for a DTD in an XML document via NSXMLParser. While NSXMLParser in principal offers publicID and systemID selectors they don't seem to work for me. The doctype tag looks like this:
<!DOCTYPE Article PUBLIC "-//SoftQuad Software//DTD Journalist v2.0 20000501//EN" "file:///C:/Program%20File...
I'm building a NSPredicate using the code below for an iPhone app. The logging shows the prediate to be: location CONTAINS "head" AND shape CONTAINS "oval" AND texture CONTAINS "bumpy" AND colour CONTAINS "red"
I get no results. If I limit the predicate to a single item it will work, more than 1 fails.
Can anyone tell me why?
Many tha...