I was just looking through some code that I wrote, and noticed I had
changed a float to an int in my header file but I was still assigning
float values to it in the code. The odd thing was that the compiler
was not complaining about it. Which warning is it that I need to turn
on in the
Hello all,
I'm having a devil of a time trying to figure out what seems to be a
pretty basic scenario: declaring a multidimensional array in the
interface section of a class when the array dimensions are unknown
until runtime. Can anyone point me in the right direction with this one?
Thanks, everyone. I guess I'm going the pointer/malloc way.
On Sep 2, 2008, at 5:27 PM, Keary Suska wrote:
9/2/08 2:57 PM, also sprach [EMAIL PROTECTED]:
I don't see the problem...
Just use a pointer to a pointer to a pointer to a ...
Every array in C is just a hidden pointer and if you try
Thanks, Ken!
Your explanation makes perfect sense now that I look at it that way.
Much appreciated.
- Don
On Aug 25, 2008, at 10:47 PM, Ken Thomases wrote:
On Aug 25, 2008, at 6:25 PM, Don Arnel wrote:
I tried to modify the position property in another file after
creating an object but I
Hello everyone!
I'm having a problem using a property for one of my custom class
objects.
I have a class like this:
INTERFACE (MyObject.h):
---
typedef struct {
float x;
float y;
} Vector2D;
@interface myObject : NSObject {
Vector2D
Unfortunately, no. The iPhone SDK is under NDA so it cannot be
discussed at this time.
On May 15, 2008, at 7:39 AM, Rich Curtis wrote:
Been lurking on the list for a couple of days. Is there another list
for iPhone SDK programmers?
Doesn't seem to be much of that in this list. Am I in the
I thought I'd share this with those of you who want an alternative to
NSLog(). If you want your debugging output to always go to the
debugger console without all the date and time stamping info, just
place this bit of code in your AppName_Prefix.pch file. Then define
the __DEBUG_OUT__
If you cut and pasted the code make sure each line begins with the #
character. If not then your mail reader wrapped a long line onto the
next line.
On Apr 24, 2008, at 6:20 PM, Mohsan Khan wrote:
Sorry, I was a little bit to quick there...
I get an error
169: DBOut( @Hello World! );
Good point! I've only used it with arguments so far. Here is a better
version:
#ifdef __DEBUG_OUT__
#define DBOut(fmt, ...) fprintf(stderr, %s\n, [[NSString
stringWithFormat:(fmt), ## __VA_ARGS__]
cStringUsingEncoding:NSUTF8StringEncoding])
#define DBCOut(fmt, ...) fprintf(stderr, fmt,
I have two different class objects that need to know about each other
(see below). But if I include the header from one class inside the
header of the other class the compiler complains. Is this even possible?
ClassOne.h:
#import ClassTwo.h
@interface ClassOne : NSObject {
I've been working on a project for a few weeks now and suddenly today
I get this error while building (see below). I was getting this same
error in one of my real classes so after commenting out almost every
bit of code and still seeing the error, I decided to just create a new
TestClass
Ah, that did the trick! I love mailing lists!
Many thanks to all who responded.
On Apr 17, 2008, at 7:15 PM, Michael Vannorsdel wrote:
Change it to:
- (void)TestFunction
{
switch (1) {
case 1:
{
NSMutableArray
Actually, after playing around with the Accessibility API I've found
that changing the layout of UI elements won't adversely affect the
external app's code at all.
On Apr 15, 2008, at 5:37 PM, Jens Alfke wrote:
I'm not so enthusiastic about it … it's basically the GUI equivalent
of
Hi all,
I've only been developing using Xcode for about 5 weeks now (long-time
Windows programmer). I am attempting to write a Cocoa app that I would
like to have hook into a text chat window from another app so that I
can log the incoming messages. The other app does not belong to my app.
Bob
On 14 Apr 2008, at 13:30, Don Arnel wrote:
Hi all,
I've only been developing using Xcode for about 5 weeks now (long-
time Windows programmer). I am attempting to write a Cocoa app that
I would like to have hook into a text chat window from another
app so that I can log the incoming
:
On Mon, Apr 14, 2008 at 10:26 AM, Don Arnel [EMAIL PROTECTED] wrote:
No...no...NO!
Alright. Now how about we take a few deep breaths, switch to decaf,
and try our social interaction again. This time without the attitude,
please.
___
Cocoa-dev
Thank you, Bill
This is exactly what I was looking for!
On Apr 14, 2008, at 5:39 PM, Bill Cheeseman wrote:
Use the Accessibility API. It's designed to do exactly this. It's a
C API,
not Cocoa or Objective-C, but you can use it in a Cocoa application.
I realize NSOperation on it's own does not spawn treads. I was
referring to the broader use of it. Surely, you knew that!
On Apr 11, 2008, at 8:08 AM, Bill Garrison wrote:
On Apr 11, 2008, at 7:35 AM, Don Arnel wrote:
Actually, while reading up on NSThread I cam across NSOperation
which
Actually, while reading up on NSThread I cam across NSOperation which
appears to spawn a new thread but is supposedly much cleaner to work
with. It definately does the job for me. Thanks everyone for your help
with this problem.
- Don
On Apr 10, 2008, at 5:13 PM, Wade Tregaskis wrote:
Hey all...
This is my first time posting to this list. I've been a Windows
developer for many many years and have just recently started to play
around with Macs. I feel like a beginner all over again! Anyway
I've got a Cocoa application which runs a simulation loop 1000s of
times. Of
and keep processing events like normal in
the main thread.
(I'm still rather new to Cocoa myself, so I hope I'm not misleading
you. The other list readers will correct me if I'm wrong.)
HTH,
Jamie
On Apr 10, 2008, at 1:00 PM, Don Arnel wrote:
Hey all...
This is my first time posting
21 matches
Mail list logo