25 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for cambalinho

i have these code for get image pixel data: typedef std::vector<BYTE> pixeldata; pixeldata GetImagePixel(HDC hdcImage) { BITMAP bmp = {0}; BITMAPINFO Info = {0}; memset( &bmp, 0, sizeof(BITMAP) ); HBITMAP hBitmap =(HBITMAP) GetCurrentObject(hdcImage, OBJ_BITMAP); GetObject(hBitmap, sizeof(BITMAP), &bmp); BITMAPINFO info { }; info.bmiHeader.biSize = sizeof(info.bmiHeader); info.bmiHeader.biWidth = bmp.bmWidth; // pay attention …

Member Avatar for cambalinho
0
330
Member Avatar for ravi_14

#import "Person.h" @class Asset; //i have used import "Asset.h" which contains definition for asset @interface Employee : Person { int employeeID; NSMutableArray *assets; } @property int employeeID; - (void)addAssetsObject:(Asset *)a; - (unsigned int)valueOfAssets; @end I got this snippet from objective c book. In the second line , author has used …

0
240
Member Avatar for pars99
Member Avatar for pars99
0
222
Member Avatar for jthomas

I am trying to send data from a UITableView into any type of database. I have 2 questions. 1: What type of database should I use (ex. MySQL, access)? 2: How will I transfer the database from a table view to the type of database I should use? PS: Please …

Member Avatar for bpp_distributor
0
468
Member Avatar for surferbloggy

Hi ,i have a contact form made with xib file it works but i can't change the background color of the view programmatically i tryed with this but nothing, i know how to put an image background but i need to change the color on the fly how can i …

Member Avatar for surferbloggy
0
1K
Member Avatar for pars99

I keep running this code and it works until I press the button, `findShapeCalc()`, and then I get EXC_BAD_INSTRUCTION in the main.swift at the line `NSApplicationMain(C_ARGC, C_ARGV)`. Why does this keep happening? Code in question: import Cocoa class ViewController: NSViewController { @IBOutlet var dropDown : NSPopUpButton @IBOutlet var length : …

0
184
Member Avatar for Dave_5

Hi guys, I'm hoping someone here can help. I am to develop an application for a project which keeps track of tennis scores. Having not been a tennis fan whatsoever during my life I am in need of some assistance developing the ontology (rules) for the apps logic. Can anyone …

Member Avatar for Dave_5
0
607
Member Avatar for great_learner

Hi guys, I am completely new to objective c. I am trying to compile a very basic program of "hello world", but the problem is that gcc compiler can't figure out where my header files are. I wrote on cygwin bash shell: [CODE =c]$ gcc -lobjc hello.m -o hello[/CODE] and …

Member Avatar for spark_1
0
242
Member Avatar for pars99

I need to compare two numbers in a cocoa application, but it doesn't allow me to use the regular signs (>=, <=, <, >) nor will it let me use isGreaterThanOrEqualTo:[] (Which, I undestand only takes an object, but I thought I would try it). So can someone please tell …

Member Avatar for Szabi Zsoldos
0
165
Member Avatar for Malymieczek

Hi All, So i have recently started developing an application in XCode for a project that I am working on. The application uses php scripts to connect to a mysql server. The problem I am facing is that when I coded textfields to send the information to the server when …

Member Avatar for davidkroj
0
190
Member Avatar for pars99

I want to set a text field to look through a switch statement to find the corresponding case. Can I just do that like this? switch(textField){ case 'someCase': // do something break; default: // do something else break; } Considering I already created an outlet for it in the @interface …

Member Avatar for pars99
0
121
Member Avatar for pars99

Everytime I press the button, it's supposed to change the label, but it doesn't. It also doesn't see that I have made any connections. Please help. Thank you in advance. AppController.m: #import "AppController.h" @implementation AppController -(IBAction)sayHello:(id)sender{ [label setStringValue:@"Hello World!"]; } @end AppController.h: #import <Foundation/Foundation.h> @interface AppController : NSObject{ IBOutlet NSTextField …

Member Avatar for pars99
0
247
Member Avatar for dancks

I'm going through an exercise in a mac programming in cocoa book, where there is a GUI and from a textfield I enter and to a list of strings displayed on a table. There are plenty of things that aren't working, the most confusing of which is I keep leaking …

Member Avatar for dancks
0
257
Member Avatar for antor

hi, i have sent you already text for objective c tutorial, but unfortunately i didn't get any reply from you. if you send me objective C tutorial i would grateful to you. Thanks Antor

Member Avatar for deceptikon
0
108
Member Avatar for hericles

I've been at this for hours - I am trying to display a barcode font in a label. Sounds simple but apparently isn't. I've added the font ttf to the project and added it to the UIAppFont array in the project p-list but the text appears normally (defaults to the …

Member Avatar for hericles
0
156
Member Avatar for Acidburn

Hi guys, it's been a frustrating day so far, I've taken the week off to get to grips with Xcode and produce an application for the iPhone. Wishing I hadn't now! Anyway, I'm slightly stuck in my conquest... I collasped the "Scene" panel when storyboarding and now I need it …

Member Avatar for Acidburn
0
117
Member Avatar for SpokaneDude

This is my code: [CODE]//++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - (void)viewDidLoad { [super viewDidLoad]; NSString *indexPath = [NSBundle pathForResource:@"iHelp" ofType:@"html" inDirectory:nil]; [webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:indexPath]]]; [/CODE] The app is crashing because 'nil' for directory name is invalid (DUH!). So for an imbedded html file, what should go there?

0
87
Member Avatar for SpokaneDude

I had my iPhone app working, developed with Storyboard. I decided to take all of the methods that belonged in a SQLite method and move them to a new SQLite class (.h and .m). Now I have errors that I can't seem to get rid of. The basic problem is …

Member Avatar for peter_budo
0
266
Member Avatar for rue64ja

Never Mind the title of the post guys and gals… it turns out that writing the post helped me vent my frustration and clear my mind. I found the issue and solved the problem while I was writing the initial post! I'm writing this because I haven't figured out how to …

Member Avatar for rue64ja
0
168
Member Avatar for sarya_w

Could someone help me to convert this Scheme Code to Objective-C? (define-type RCFAE [num (n number?)] [add (lhs RCFAE?) (rhs RCFAE?)] [id (name symbol?)] [fun (param symbol?) (body RCFAE?)] [app (fun-expr RCFAE?) (arg-expr RCFAE?)] [with (id symbol?) (named-expr RCFAE?) (body RCFAE?)] [if0 (cond RCFAE?) (then RCFAE?) (else RCFAE?)] [rec (id …

Member Avatar for sarya_w
0
358
Member Avatar for Navlag

Writing a small program that requires me to convert strings to doubles and then back to strings. Right now, the code compiles but the answer is wrong, even though I am using an algorithm that I know is right in C++. Can someone tell me what I'm doing wrong? The …

Member Avatar for Navlag
0
114
Member Avatar for musikluver4

I have been doing java for almost 3 years now, am just starting to learn Objective-C as of this past June. Been writing a few programs on my own and writing programs for the exercises in 2 very cool Cocoa/objective-c books. My question is how do I, coming from Java, …

Member Avatar for anilkumar-m
0
263
Member Avatar for Rickay

I have started dabbling in Objective-C for iOS developing. Is using the C forum of this website appropriate for questions regarding Objective-C? If not, what would the correct forum be? Thanks!

Member Avatar for Rickay
0
215
Member Avatar for Seattle Slim

I see some comments about Objective C or Cocoa however their does note seem to be a specific area for such comments. Objective C would be a good listing below the other languages. Any serious OSx iPad or iPhone developers would look here first for information. Since there is more …

Member Avatar for jon.kiparsky
2
381
Member Avatar for Celtrix

i get an undefined reference to _objc_class_name_greeter error when I compile When I remove the line Greeter * Hi=[[greeter alloc] init]; it compiles and all but one option works any idea what's wrong with that line Also the error is at .data+0xa4 and correction it actually happens during linking ? …

Member Avatar for Celtrix
0
355

The End.