Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8195529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:10:11+00:00 2026-06-07T05:10:11+00:00

I am trying to add this category to CPView but XCodeCapp gives an error

  • 0

I am trying to add this category to CPView but XCodeCapp gives an error and I get unrecognized selector sent to instance error when I try to use this method.

@import <AppKit/CPView.j>

@implementation CPView (Custom)

- (void) addSomething
{
    var bounds = [self bounds];
    var context = [[CPGraphicsContext currentContext] graphicsPort];

    CGContextSetFillColor(context, [CPColor blueColor]);
    CGContextFillRect(context, CGRectMake(100,100,100,100));
}

@end

The syntax is correct as far as I can tell, the file name I am using is CPView_Custom.j

EDIT

I am also using IB to connect a CPView ivar to a custom view in the XIB/NIB file. Not sure if this makes a difference or not.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T05:10:12+00:00Added an answer on June 7, 2026 at 5:10 am

    XCodeCapp will always throw errors regarding Categories because the objj CLI cannot understand them as a single file.

    You should ignore your categories by adding some entries in .xcodecapp-ignore.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get this error when trying to add a record to my database: 2012-02-12
I am trying to add some logic in this. But I am not sure
Im trying to add an init method in a category like this: @interface NSError
Im listing all wordpress posts in the blog category but trying to add a
This is killing me... When trying to add a key to like so: category.site_ids
I'm trying to add Modernizr to this page: http://www.alternativeradio.org/pages/test . Modernizr works fine and
I'm trying to add some share this javascript in between the head tags of
I'm trying to add a value (in this case the string I Added This)
I started by trying to add a .toggle() to this code so that the
I've encountered this problem (while trying to add SQL Server Database (.mdf) file to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.