Search results

  1. B

    Adding methods to NSArray through categories, code problem.

    It looks like NSMutableArray's -arrayWithCapcity and NSEnumerator's -objectEnumerator return objects that are autoreleased? I have taken out all reference to releasing these object and the code now runs fine. If this is the case how do I know which objects I own to release and ones that I...
  2. B

    Adding methods to NSArray through categories, code problem.

    Thanks for the advice on enumerators, it works now but strangely there is a signal 10 (SIGBUS) #import <foundation/foundation.h> #define pts 5 int main(int argc, char *argv[]) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSMutableArray *x, *xToo; x = [NSMutableArray...
  3. B

    Adding methods to NSArray through categories, code problem.

    Wow you where up late too last night! Thanks for the comments, I'm now categorising the NSMutableArray Class rather than NSArray. It's possible to just copy your @interface definitions of methods into you @implementation so that's where the semicolon came from. I'll try messing around...
  4. B

    Adding methods to NSArray through categories, code problem.

    Hello all. I have added a method called flip to NSArray. It has very limited scope but works find for me because there in only one situation in which I will ever use it. It's job it to flip an NSMutableArray containing double NSNumber objects, e.g. [0 1 2 3 4 5] goes in [5 4 3 2 1 0] comes...
  5. B

    Obj-c

    If you understand about the use of objects in programming then you should have any trouble dealing with Obj-C. You just need to get use to a different syntax. The only book that ever made sense to me about objects (I learnt obj-c from knowing nothing about programming) was Steve Kochan's book...
  6. B

    how does apple make cross platform apps?

    Hello. I was just installed iTunes on my windows machine at work. It looks identical to the mac version. They have got rid of the menu bar (that is normally stuck to every app window) and have the menu integrated into the top left the itunes windows. So my question is how do they do it! I...
  7. B

    iTunes Gift Certificates

    Thanks for your help. I don't know how this got moved to the rumors section? I was sure I put it in the software section. Thanks again, Daniel.
  8. B

    iTunes Gift Certificates

    Hello everybody, I want to get an iTunes gift certificate for my little brother for christmas, however he doesn't have a credit card (!) and doesn't have an iTunes account. Is there away I can do this? Daniel.
  9. B

    Firefox

    Isn't QuickDraw very dated these days, I remember it back in System 8.5! So FireFox for mac is a Carbon app? Also, with camino being Cocoa what's the point for firefox to be rewritten? Dan
  10. B

    Remote desktop similar program

    Is there an opens source VNC client so you can remote desktop from PC --> Mac?
  11. B

    Firefox

    Is there away to override camino's builtin shortcuts? I find it impossible to hold alt+cmd+right with on hand on my powerbook?
  12. B

    Firefox

    Does anybody else notice the difference in page rendering between Safari and FireFox? Safari seem to have more contrast. For example, you can't see the bottom of the search field box at google; it just blends into the rest of the white page. Additionally, the buttons are not aqua.
  13. B

    Remote desktop similar program

    Investigate Chicken of the VNC. I haven't used it myself but a friend of mine was talking to me today and mentioned that he uses it. Alternative there is MS Remote Desktop Client (if you want to go Mac --> PC). And finally there is Apple Remote Desktop but this costs money...
  14. B

    Getting more precision in math.h

    I have run the above code on a 64-bit Linux Workstation and it computes the number correctly! I guess there is some compiler option checked that ignores long doubles. Does anybody have an idea on where I can go from here (apart from going to buy a quad!) Daniel.
  15. B

    Getting more precision in math.h

    Yeah, no change. long double sinhl(long double) == long double sinhl(double) Does C have a 64 bit math library? Daniel.
  16. B

    Getting more precision in math.h

    Things are getting strange ... here is the output:sizeof(double) = 8 sizeof(long double) = 16 Is there a mistake, I'm calling sinhl from the math.h library rather than sinh, Can you spot a mistake in the code?[CODE] double doub; double a; printf("\ndouble precision\n"); for(a=700.0; a <...
  17. B

    Getting more precision in math.h

    Yeah. These aren't angles. I'm using sinh because it makes my equation tidy, I'm grouping all my exp together. Any idea on how do I get bigger floating point numbers? Daniel.
  18. B

    Getting more precision in math.h

    Hello everybody, I need to calculate hyperbolic sin of large numbers, e.g. sinh(1000). However I start to get infinites after sinh(710). How can I do this? Here is some code that calculates sinh in sinh(700) region for float, double and long double numbers. Why does long double return...
  19. B

    Flash based harddisk?

    Hello everybody, With apple securing so much flash memory it does make you think that they are going to use it in more than just iPods ... could ultraportable powerbooks that use flash harddisks be round the corner? Does anybody know about the technical details of harddisk storage vs...
  20. B

    Mactel Powerbook Expectations

    I changed from PC recently to a 12 inch PB. I don't actually miss the right click. It's not essencial in macos. And also in all the apple apps: they are so stream lined I find my self mostly using keyboard shortcuts to get around. When I need other options (i.e. in windows you would right click)...
Back
Top