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 8888339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:00:24+00:00 2026-06-14T22:00:24+00:00

in order to load a PDF document into a PDFView I added Quartz.framework to

  • 0

in order to load a PDF document into a PDFView I added Quartz.framework to my project.

Since then, although I haven´t even used it so far, I´m getting strange error messages:
Multiple methods named ‘state’ found with mismatched result, parameter type or attributes

I´m using the state method which is from AppKit.framework/NSCell to check if checkboxes are on or off like this:

BOOL replaceCheckBoxFlag = ([sender state] == NSOnState);

The ImageCaptureCore.framework which is part of the Quartz.framework also owns a method state. How is it possible that Xcode get´s confused?

What can I do? Any hints?

Ronald

  • 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-14T22:00:25+00:00Added an answer on June 14, 2026 at 10:00 pm

    This is happening because sender is declared as type id, which means that the compiler knows it’s an Objective-C object, but it doesn’t know what class it belongs to. So it looks though all the class definitions and it found two matches, and it doesn’t know which one to use.

    The solution is to either cast it or use a new variable of the correct type:

    BOOL replaceCheckBoxFlag = ([(NSCell *)sender state] == NSOnState);
    

    or

    NSCell *cell = sender;
    BOOL replaceCheckBoxFlag = ([cell state] == NSOnState);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Following this pdf document I added the following to my ~/.emacs file: (load auctex.el
In order to load data (from a CSV file) into an Oracle database, I
In order to load image quickly in webpage, we merger many small images into
I need to load a pdf file and then convert it to a text
How can I define the load order of javascript assets in the Play framework
I am passing the following URL in order to load a report in SSRS.
I need to implement a plugin architecture within c#/.net in order to load custom
I've a web page that renders latex equations using mathjax. In order to load
I've defined the following media queries in order to load different .css files for
In order to load a jQuery mobile page using an anchor tag, one just

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.