Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat would cause RegexKit to spawn a "Requested configuration not supported" error?
    text
    copied!<p>I have the framework installed per the instructions on the website and RegexKit.h imported into my AppController header file. I'm using a simple method defined in AppController.m to make sure everything is working.</p> <pre><code>- (IBAction)test:(id)sender { NSString *str = @"Torpedos: 0 1 1 0 1 Lasers: 150 150"; NSString *rgx = @"Torpedos: (([0-1x]) ){3,8}"; NSString *torpStr = NULL; [str getCapturesWithRegexAndReferences:rgx, @"$0", &amp;torpStr, nil]; NSLog(@"%@", torpStr); } </code></pre> <p>I get this error in the console when I click the Test button: </p> <blockquote> <p>-[NSMapTable initWithKeyPointerFunctions:valuePointerFunctions:capacity:]<br> Requested configuration not supported.</p> </blockquote> <p>I've spent half a day searching the net and looking through the Apple Dev docs, and all I've found is a notation in the Apple docs indicating that entries must be explicitly removed if you aren't using garbage collection (which I am). And...</p> <blockquote> <p>When configuring map tables, note that only the options listed in “NSMapTableOptions” guarantee that the rest of the API will work correctly—including copying, archiving, and fast enumeration. While other NSPointerFunctions options are used for certain configurations, such as to hold arbitrary pointers, not all combinations of the options are valid. With some combinations the map table may not work correctly, or may not even be initialized correctly.</p> </blockquote> <p>Which sounds like what could be going on. I just have no clue where to begin looking.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload