• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Weird error with structs and @try/@catch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weird error with structs and @try/@catch


  • Subject: Weird error with structs and @try/@catch
  • From: Glen Simmons <email@hidden>
  • Date: Wed, 10 May 2006 19:06:28 -0500

Why does this code:

        NSRect      aRect = NSMakeRect(0,0,50,50);
        NSString*   aString = @"aString";

        @try {
            // Some exception throwing code here
        }
        @catch(NSException* exception) {
            // Handle the exception
        }

        [self foo:aRect];
        [self bar:aString];

produce this error:

error: no matching function for call to '_NSRect::_NSRect(volatile NSRect&)'

for the NSRect, but not the NSString? And is there a fix?

Thanks,
Glen Simmons
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Weird error with structs and @try/@catch
      • From: Shaun Wexler <email@hidden>
    • Re: Weird error with structs and @try/@catch
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: NSArrayController filterPredicate and dates
  • Next by Date: Re: Weird error with structs and @try/@catch
  • Previous by thread: Re: NSArrayController filterPredicate and dates
  • Next by thread: Re: Weird error with structs and @try/@catch
  • Index(es):
    • Date
    • Thread