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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:49:22+00:00 2026-06-01T07:49:22+00:00

I noticed two things when switching between iOS and regular OS X development: //SomeClass.h

  • 0

I noticed two things when switching between iOS and regular OS X development:

//SomeClass.h
@interface SomeClass: SomeUIClass

    @property (retain)SomeProperty* someProperty;

@end

//SomeClass.m
@interface SomeClass ()
{
    SomePrivateVar* somePrivateVar;
}
@end

@implementation SomeClass

@synthesize someProperty;
@end

The above will compile just fine under iOS. That is:

  1. I can synthesize the property without declaring an ivar explicitly
    in the public @interface
  2. I can further declare other private ivars in the .m file under the
    anonymous category (class extension).

However, if compiling for OS X and subclassing some NS-based class as opposed to a UI-based one (say, NSView instead of UIView), both the above things result in compiler errors.

I guess I thought Objective-C 2. allowed for the above in general, but they are only “shortcuts” in iOS? or what’s the deal with them being allowed in iOS but not in OS X?

  • 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-01T07:49:23+00:00Added an answer on June 1, 2026 at 7:49 am

    Those are features of the “modern runtime” which can only be used for 64 bit apps on Mac OS X. You’re probably building a universal binary that also includes a 32 bit version.

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

Sidebar

Related Questions

I am using code analysis tool of VS 2010..two things that i have noticed
I noticed in two applications to generate hashes of files, one written in Java
Something that I've noticed recently on two different machines is that Apache2 installed via
I'm new to PowerShell and noticed that executing help and Get-Help are two distinct
I started iPhone development two months ago, so I can't call myself expert ;-)
I've noticed a few weird things about the simulator in Xcode 4.3.1. 1) The
I noticed there are two ways to create nice generic friendly access to nhibernate.
I'm using the System.Windows.Controls.WebBrowser for various things in my app and I've noticed that
When I remove microsoft visual stuido 2008 and upgrade to 2010, I notice two
In struts I notice there are two different ways to access variables. I am

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.