Yeah, that is the correct argument order, I wasn't paying attention to the arguments, I copied those in the order you wrote them. The name of the selector and the syntax were what I noticed as being obviously wrong.
I highly suggest you read the Introduction to PyObjC document until you understand it. If you have any questions, feel free to ask... -bob On May 16, 2005, at 8:36 PM, Joe Duhamel wrote: > Bob, > I started with the PyObjC doc's. Obviously there was something in > there that I did not understand. I'm trying to figure out how to do a > setValue and failing. I've looked through all of the example code and > have been a bit lost. I'm guessing the properties goes to a key and > that it's actually. > undefined.setValue_forKey_("Undefined","GroupName"). > -Joe > > > > > On 5/17/05, Bob Ippolito <[EMAIL PROTECTED]> wrote: > >> >> On May 16, 2005, at 7:56 PM, Joe Duhamel wrote: >> >> >>> All, >>> I know this is a novice question but I'm trying to create a new >>> group >>> using the python pyobjc module. I'm ure I've made a juvenile mistake >>> but help would be appreciated. >>> >>> >>> -Joe >>> >>> if undefined is None: >>> undefined = ABGroup.alloc().init() >>> undefined.setValueForProperty_("GroupName") = "UnDefined" ** >>> Causes >>> obvious error. >>> book.addGroup(undefined) >>> >> >> That's not even valid Python syntax! >> >> undefined.setValue_forProperty_("GroupName", "UnDefined") >> >> I suggest you read the PyObjC documentation... >> >> -bob >> >> > _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig