Comments (4)
I think this is a change that happened somewhere around OS X 10.8 - there was a change in the Objective C API itself that changed the way properties were returned. Nowadays, properties don't need to be called - but that wasn't always the case.
Ideally, we'd be able to support both - but given older OS X instances are going to fade off into the sunset, I'm not sure if this is worth it...
from rubicon-objc.
uhm., I'm targeting iOS; granted I did make other changes in my project, perhaps that was it.
from rubicon-objc.
Yep, there's a special case in ObjCInstance.__getattr__
for properties, it returns the property value directly. Sadly, properties are usually named exactly like their getters, so it's not possible to tell if that behavior is wanted, based on the attribute name. Though I think you can use send_message(UIColor, "blueColor")
, that should work regardless of the special property syntax.
from rubicon-objc.
I believe this has now been addressed; please reopen if it's still a problem for you.
from rubicon-objc.
Related Issues (20)
- Race condition when populating the ObjCClass method/attribute cache
- Update CI configuration to test release artefacts
- Improve correspondence between ObjectiveC objects and Python wrappers HOT 17
- New caching logic may inadvertently release objects that are still needed HOT 5
- ctypes.ArgumentError message is split into individual characters
- Warning about deprecated `pkg_resources` API
- Incompatibility with `from __future__ import annotations` HOT 1
- Incompatibility with Python 3.12.0b1 HOT 4
- Scroll blocks eventloop for ios HOT 3
- Can't invoke Protocol methods that collide with object properties HOT 2
- "ImportError: No module named 'rubicon'" if trying to bundle script via py2app. HOT 1
- Sphinx 7.2 dropped support for Python 3.8
- Importing rubicon.objs hangs on pypy HOT 1
- Normalize contribution docs with Briefcase/Toga
- Duplicate elements in repr of `ObjCInstance` HOT 7
- ctypes_patch breaks with Python 3.13.0a6 HOT 2
- Event loop stalls in network test
- Change the implementation of ObjCStrInstance HOT 2
- Partial method argument order HOT 5
- Improve the error message of partial methods HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rubicon-objc.