Lisp HUG Maillist Archive

Cocoa constants

Is there a way to get constants using the Objective-C interface? For 
example, NSToolbarPrintItemIdentifier is a NSString constant -- I don't 
see a way to get it into Lisp other than trying to hunt it down and 
copy the value from a header file.


John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


Re: Cocoa constants

John,
if you do not mind I would like to add to your question.

I have been trying to work the low-level example in the Apple  
coredata documentation and found myself blocked by the same issue,  
only to realize that I had to hunt the header files like you did.

In addition, I have not been able to figured out how one adds a  
boolean value like in
[dateAttribute setOptional:NO];
(objc:invoke date-attribute "setOptional:" 0) ?

What are the values or calls to replace NO or YES?

Bruno

On May 23, 2005, at 08:53, John DeSoi wrote:


> Is there a way to get constants using the Objective-C interface?  
> For example, NSToolbarPrintItemIdentifier is a NSString constant --  
> I don't see a way to get it into Lisp other than trying to hunt it  
> down and copy the value from a header file.
>
>
> John DeSoi, Ph.D.
> http://pgedit.com/
> Power Tools for PostgreSQL
>
>



Re: Cocoa constants

As another follow up to John's question.

I am trying to develop some code using QTKit but it seems like the 
values of the constants are hidden some where.
For example, QTMovieDurationAttribute
is defined in the header file as
QTKIT_EXTERN NSString *QTMovieDurationAttribute

Has anyone been successful in using QTKit?

Thanks

bruno

On May 23, 2005, at 8:53, John DeSoi wrote:

> Is there a way to get constants using the Objective-C interface? For 
> example, NSToolbarPrintItemIdentifier is a NSString constant -- I 
> don't see a way to get it into Lisp other than trying to hunt it down 
> and copy the value from a header file.
>
>
> John DeSoi, Ph.D.
> http://pgedit.com/
> Power Tools for PostgreSQL
>


Re: Cocoa constants

Unable to parse email body. Email id is 3962

Updated at: 2020-12-10 08:52 UTC