Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Search Forums > Search Results

Search: Posts Made By: Spiffster
Thread Thread Starter Last Post Replies Views Forum
Saving Documents 523 Views / 1 Replies  
I have my custom class conform to the NSCoder protcol correctly. Now what do I do to get this thing to turn into a NSData object so that I can return it in - (NSData...
Posted by Spiffster, on May 26, 2003 at 10:00 PM, in Developer Center
I fixed it. Grrrrr, -acceptsFirstResponder... 912 Views / 10 Replies  
I fixed it.

Grrrrr, -acceptsFirstResponder NOT acceptFirstResponder. :brick:
Posted by Spiffster, on May 7, 2003 at 06:58 PM, in Developer Center
explaination? please?:hmm: 912 Views / 10 Replies  
explaination? please?:hmm:
Posted by Spiffster, on May 6, 2003 at 08:30 PM, in Developer Center
As far as I know it is. What other ways are there... 912 Views / 10 Replies  
As far as I know it is. What other ways are there to making the view first responder.
Posted by Spiffster, on May 6, 2003 at 03:15 PM, in Developer Center
Reading Keyboard Events 912 Views / 10 Replies  
In my NSView subclass I want to be able to read events to the keyboard (up/down arrows espically). My first problem is getting the event to my subclass in the first place. I have...
Posted by Spiffster, on May 5, 2003 at 09:17 PM, in Developer Center
SDL sounds good, but too bad I don't know Carbon,... 552 Views / 2 Replies  
SDL sounds good, but too bad I don't know Carbon, C++, or anything other than Cocoa and plain C. Mayble I'll teach myself those someday.
Posted by Spiffster, on May 4, 2003 at 02:22 PM, in Developer Center
Sprites 552 Views / 2 Replies  
How does one go about using sprites in Cocoa? The only real kit I found is CSK, but i can't find any documentation for it. Sprite programming is new to me and I want to find something to introduce me...
Posted by Spiffster, on May 3, 2003 at 06:20 PM, in Developer Center
tikki, how'd you get it to work? I'm in a similar... 759 Views / 8 Replies  
tikki, how'd you get it to work? I'm in a similar situation. I'm not sure, but so far i have:



- (NSData *)dataRepresentationOfType:(NSString *)aType
{
NSDictionary *list = [list...
Posted by Spiffster, on Apr 9, 2003 at 04:17 PM, in Developer Center
Saving Arrays in Cocoa 561 Views / 2 Replies  
In my (document based) application, I have a user input 2 lists of words. I want to save these two arrays in one file. What do I have to do in the - (NSData *)dataRepresentationOfType:(NSString...
Posted by Spiffster, on Apr 8, 2003 at 10:16 PM, in Developer Center
Sorry about that. I didn't think it would be that... 3,743 Views / 3 Replies  
Sorry about that. I didn't think it would be that easy. :mad:
Posted by Spiffster, on Mar 6, 2003 at 09:46 PM, in Developer Center
Write NSMutableDictionary to file 3,743 Views / 3 Replies  
In my application, I have a user input a list of key-value pairs into a NSDictionary. Now I want to save these key-value pairs into a file? Am I going to need to rewrite it as a document based...
Posted by Spiffster, on Mar 6, 2003 at 09:02 PM, in Developer Center
What about IRC chats? 773 Views / 6 Replies  
What about IRC chats?
Posted by Spiffster, on Feb 26, 2003 at 10:16 PM, in Developer Center
Cocoa or Carbon 998 Views / 14 Replies  
I finished reading Learning Cocoa with Objective C, and am a decent C programmer. Now I'm not really fond of the OOP in Cocoa. Maybe because I haven't used it too much (can't think of any ideas for...
Posted by Spiffster, on Feb 20, 2003 at 11:14 PM, in Developer Center
Thats it Diggory. I see Apple used it like this ... 735 Views / 5 Replies  
Thats it Diggory. I see Apple used it like this

#pragma mark PUBLIC INSTANCE METHODS
Posted by Spiffster, on Feb 4, 2003 at 04:49 PM, in Developer Center
#pragma 735 Views / 5 Replies  
I see it often in the Apple sample code, but there's no documentation in the Learning Cocoa Book, and I can't find any in Apple's Objective-C book. I can see that its used with something involved in...
Posted by Spiffster, on Feb 3, 2003 at 10:59 PM, in Developer Center
Thanks everyone, problem solved.:D 14,240 Views / 20 Replies  
Thanks everyone, problem solved.:D
Posted by Spiffster, on Jan 31, 2003 at 07:31 PM, in Developer Center
Well, I'm still having trouble adding these... 14,240 Views / 20 Replies  
Well, I'm still having trouble adding these values to the NSMutable array. Even though as far as I know, my code is right, the objects are not being added to the array. code is as follows:
...
Posted by Spiffster, on Jan 30, 2003 at 08:00 PM, in Developer Center
Never thought of that. BTW, is there any conflict... 14,240 Views / 20 Replies  
Never thought of that. BTW, is there any conflict if i add multiple objects into a NSArray that have the same name? ex. multiple objects named clickPoint.
Posted by Spiffster, on Jan 28, 2003 at 01:34 PM, in Developer Center
What I'm trying to do is record the points of... 14,240 Views / 20 Replies  
What I'm trying to do is record the points of mouse clicks into an NSArray. I take the location of the event, turn it into an NSPoint, and then I want to add them to an NSMutableArray for later...
Posted by Spiffster, on Jan 27, 2003 at 10:55 PM, in Developer Center
Adding stucts to NSMutableArray 14,240 Views / 20 Replies  
How can I add NSPoint structs to a NSMutableArray. When I try [array addObject:point] the compiler complains that point is not an object. Is there an easy way to convert an NSPoint to an object, or...
Posted by Spiffster, on Jan 26, 2003 at 10:30 PM, in Developer Center
X11 font init 472 Views / 1 Replies  
I just installed xfree86 from the official binaries. It quits on startup with the error message:

Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
Could not...
Posted by Spiffster, on Dec 23, 2002 at 12:51 PM, in macOS
C question again 540 Views / 2 Replies  
What does this while loop test for?

char str[80], *p;
p=str;

while(*p) {
blah blah blah�
}

I know its tests to see if *p is true, but how does *p become true?
Posted by Spiffster, on Nov 27, 2002 at 11:25 PM, in Developer Center
Editng the prompt 762 Views / 4 Replies  
What do i have to edit to change the default command line prompt, and how do i do it? I want to change it because the path name gets Really Long� and it just gets in the way. I remember reading it...
Posted by Spiffster, on Nov 25, 2002 at 11:12 PM, in macOS
Actually, it was my fault. I tried to rewrite the... 932 Views / 3 Replies  
Actually, it was my fault. I tried to rewrite the example. It originally used array indexes, and i tried to rewrite it using pointer artihmatic. I guess i fscked up pretty baddly 8^).
Posted by Spiffster, on Nov 18, 2002 at 11:37 PM, in Developer Center
C bus error w/ pointers 932 Views / 3 Replies  
Yet another question from a beginner reading a book.

What is wrong with this code:

char *p[][2] = {
�string table stuff�
};

int main()
{
Posted by Spiffster, on Nov 17, 2002 at 11:06 PM, in Developer Center
gets() function 530 Views / 1 Replies  
I hate to keep asking you guys easy C questions, but I dont know where else to go.

Why is the gets() function considered unsafe. When ever i call it, compile and run the program, i always get a...
Posted by Spiffster, on Nov 13, 2002 at 10:40 PM, in Developer Center
It compiled, but when i call the getch() (with... 1,055 Views / 11 Replies  
It compiled, but when i call the getch() (with 'ch = getch()') function it seems to skip it, and i cant enter a letter. It just displays the unknown symbol, and quits.

And why do i have to use the...
Posted by Spiffster, on Nov 12, 2002 at 10:31 PM, in Developer Center
<curses.h> 1,055 Views / 11 Replies  
Take a look at this code:

#include <stdio.h>
#include <curses.h>

int main()
{
char ch;
printf("Enter a letter: ");
ch= getch();
Posted by Spiffster, on Nov 12, 2002 at 06:08 PM, in Developer Center
could you expand on that? please? 675 Views / 4 Replies  
could you expand on that? please?
Posted by Spiffster, on Nov 9, 2002 at 12:30 AM, in Developer Center
C loops 675 Views / 4 Replies  
I'm trying to learn C, and im having problems with a few loops. For example, I'll use my program that finds multiples of 6:

#include <stdio.h>

int main()
{
int i;
char ch;

/* display...
Posted by Spiffster, on Nov 8, 2002 at 11:58 PM, in Developer Center
 
Top
Privacy Policy
All times are GMT -4. The time now is 11:59 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,