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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:17:14+00:00 2026-05-26T14:17:14+00:00

I am quite puzzled why this warning pops up. I use the same procedure

  • 0

I am quite puzzled why this warning pops up. I use the same procedure on other controllers where it works perfectly.

ConditionTableViewController.m:57: warning: passing argument 1 of ‘initWithCondition:’ makes integer from pointer without a cast

With the following code

- (void)managedObjectSelected:(NSManagedObject *)managedObject
{
// Load View
Condition *con = (Condition *)managedObject;
ConditionDetailViewController *detail = [[ConditionDetailViewController alloc] initWithCondition:con];

detail.title = [[managedObject valueForKey:@"cave"] valueForKey:@"title"];

self.navigationItem.backBarButtonItem =
[[[UIBarButtonItem alloc] initWithTitle:@"Back"
                                  style: UIBarButtonItemStyleBordered
                                 target:nil
                                 action:nil] autorelease];

[self.navigationController pushViewController:detail animated:YES];
[detail release];
}

In ConditionDetailViewController.h

- (id)initWithCondition:(Condition *)aCondition;

Here the console output of “con”

2011-07-26 11:03:08.485 CaveConditions[10631:f203] <NSManagedObject: 0xe6628e0> (entity: Condition; id: 0xe6608b0 <x-coredata://368AFBD3-2C66-4ED7-977D-AB8EED8BB577/Condition/p149> ; data: {
    cave = "0x67486e0 <x-coredata://368AFBD3-2C66-4ED7-977D-AB8EED8BB577/Cave/p7>";
    ccId = 678;
    comment = "";
    diveDate = 1286830059;
    flow = "0xe668270 <x-coredata://368AFBD3-2C66-4ED7-977D-AB8EED8BB577/Flow/p1>";
    imageURL = "orbe_doof.jpg";
    insertDate = nil;
    ip = "xxx.xxx.xxx.xxx";
    line = "0xe668280 <x-coredata://368AFBD3-2C66-4ED7-977D-AB8EED8BB577/Line/p1>";
    percolation = "0xe668290 <x-coredata://368AFBD3-2C66-4ED7-977D-AB8EED8BB577/Percolation/p5>";
    sediment = "0xe6682a0 <x-coredata://368AFBD3-2C66-4ED7-977D-AB8EED8BB577/Sediment/p2>";
    temperature = 13;
    userMail = "xxx@xxx.ch";
    username = "Hans K...";
    visibility = "0xe6682b0 <x-coredata://368AFBD3-2C66-4ED7-977D-AB8EED8BB577/Visibility/p7>";
})

Includes as requested

ConditionTableViewController.h

#import "CellTableViewController.h"
#import "Cave.h"

ConditionTableViewController.m (Where the managedObjectSelected method gets called)

#import "ConditionTableViewController.h"
#import "ConditionDetailViewController.h"

ConditionDetailViewController.h

#import <UIKit/UIKit.h>
#import "Condition.h"
#import <QuartzCore/QuartzCore.h>

ConditionDetailViewController.m

#import "ConditionDetailViewController.h"
#import "DataProcessor.h"
#import "PhotoViewController.h"
  • 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-05-26T14:17:15+00:00Added an answer on May 26, 2026 at 2:17 pm

    initWithCondition: is a method of the NSConditionLock class in the Foundation framework that takes an integer. I think Xcode has somehow confused the symbol names initWithCondition: from two classes, and is using the wrong version. If your code is correct, including importing the correct headers in every file, it’s probably a faulty index or precompiled header. Try deleting the derived data for the project from the “Projects” section of the “Organizer” window, and rebuilding the project.

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

Sidebar

Related Questions

I'm quite puzzled how the syntax highlighting feature here on SO works, but I
I've been puzzled by this for a while. I am writing quite a large
I'm quite puzzled. I'm using this method in my app, and when I pass
this is probably something I should know, but I'm puzzled by this. I'm trying
I came across this File parsing programming challenge today and found it quite interesting.
Recently I've read this performance guide Let's make the web faster and was puzzled
Quite often in ANSI C code I can see parenthesis sorrounding a single return
Quite a few comments to answers in a different post, Where are the best
Quite simple really: var req:URLRequest=new URLRequest(); req.url=http://somesite.com; var header:URLRequestHeader=new URLRequestHeader(my-bespoke-header,1); req.requestHeaders.push(header); req.method=URLRequestMethod.GET; stream.load(req); Yet,
Quite a while ago, I heard about Object databases. Cool concept and all. Now,

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.