00:46:44 palter [n=palter@c-24-128-76-188.hsd1.ma.comcast.net] has joined #ccl 00:52:49 Adlai` [n=adlai@unaffiliated/adlai] has joined #ccl 00:53:35 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Nick collision from services.] 01:00:15 -!- palter [palter@clozure-7F1423AA.hsd1.ma.comcast.net] has quit [Quit: palter] 01:00:15 -!- palter [n=palter@c-24-128-76-188.hsd1.ma.comcast.net] has quit [] 01:01:22 palter [n=palter@c-24-128-76-188.hsd1.ma.comcast.net] has joined #ccl 01:09:31 -!- Adlai` is now known as Adlai 01:14:09 Adlai` [n=adlai@unaffiliated/adlai] has joined #ccl 01:15:05 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Nick collision from services.] 01:15:09 -!- Adlai` is now known as ADLAI 01:16:19 -!- ADLAI is now known as Adlai 01:24:40 -!- Modius__ is now known as Modius 01:39:10 -!- Modius [n=Modius@cpe-70-123-130-159.austin.res.rr.com] has quit ["I'm big in Japan"] 01:55:05 -!- billstclair [wws@clozure-5A39CB22.taconic.net] has quit [Ping timeout] 01:57:57 -!- alms [alms@clozure-AD075F06.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has quit [Quit: alms] 01:57:57 -!- alms [n=alms@146-115-42-237.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has quit [] 01:58:05 Modius [n=Modius@70.123.130.159] has joined #ccl 02:01:01 alms [n=alms@146-115-42-237.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has joined #ccl 02:07:58 Adlai` [n=adlai@unaffiliated/adlai] has joined #ccl 02:08:37 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Nick collision from services.] 02:08:44 -!- Adlai` is now known as Adlai 02:45:24 yehnan [i=yehnan@114-42-132-61.dynamic.hinet.net] has joined #ccl 02:55:31 -!- yehnan [i=yehnan@114-42-132-61.dynamic.hinet.net] has left #ccl 03:14:10 Adlai` [n=adlai@unaffiliated/adlai] has joined #ccl 03:14:40 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Nick collision from services.] 03:14:46 -!- Adlai` is now known as Adlai 03:41:58 Adlai` [n=adlai@unaffiliated/adlai] has joined #ccl 03:42:50 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Nick collision from services.] 03:42:52 -!- Adlai` is now known as Adlai 04:06:48 Adlai` [n=adlai@unaffiliated/adlai] has joined #ccl 04:07:11 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Nick collision from services.] 04:07:17 -!- Adlai` is now known as Adlai 04:16:00 lpolzer_ [n=lpolzer@88.73.229.239] has joined #ccl 04:25:01 -!- lpolzer [n=lpolzer@88.73.251.254] has quit [Read error: 145 (Connection timed out)] 04:29:08 bfulgham_ [n=brent@adsl-69-234-133-58.dsl.irvnca.pacbell.net] has joined #ccl 05:11:05 Adlai` [n=adlai@unaffiliated/adlai] has joined #ccl 05:12:28 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Nick collision from services.] 05:12:32 -!- Adlai` is now known as Adlai 05:16:59 -!- Summermute [n=scott@98.204.67.114] has quit [Read error: 110 (Connection timed out)] 05:21:23 Adlai` [n=adlai@unaffiliated/adlai] has joined #ccl 05:22:11 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Nick collision from services.] 05:22:13 -!- Adlai` is now known as Adlai 05:42:00 Adlai` [n=adlai@unaffiliated/adlai] has joined #ccl 05:42:45 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Nick collision from services.] 05:42:49 -!- Adlai` is now known as Adlai 05:48:23 Adlai` [n=adlai@unaffiliated/adlai] has joined #ccl 05:49:20 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Nick collision from services.] 05:49:23 -!- Adlai` is now known as Adlai 06:50:23 -!- sellout [n=greg@c-24-128-48-180.hsd1.ma.comcast.net] has quit [Read error: 110 (Connection timed out)] 06:53:42 Adlai` [n=adlai@unaffiliated/adlai] has joined #ccl 06:59:53 Arelius [n=Indy@cpe-071-077-001-196.nc.res.rr.com] has joined #ccl 07:00:26 With the objC bridge in context, how does #/ work 07:00:30 + what does it do? 07:02:58 Do you want to know how its implemented, or how to use it? 07:04:29 How to use it 07:04:39 and how does it compare to objc::send 07:04:42 objc:send 07:06:06 Also, how do you use ObjC selectors 07:07:26 (#/numberWithInt: ns:ns-number 12) is like [NSNumber numberWithInt:12] 07:07:31 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Nick collision from services.] 07:07:36 -!- Adlai` is now known as Adlai 07:07:56 Sure 07:08:12 how about multiple arg methods? 07:08:14 If you squint at it, you can think of #/... as a weird-looking generic function that's specialized only on the first argument. 07:09:32 (#/someObject:withFoo:andBar: receiver foo bar) 07:10:25 (@selector #/someSelector:arg:) is like @selector(someSelector:arg:) 07:11:10 make that (#/someObject:withFoo:andBar: receiver object foo bar) 07:11:44 anyway, if you read some of the files in ccl:cocoa-ide; you'll probably get the idea. 07:12:41 http://trac.clozure.com/ccl/wiki/Cocoa has some examples, too. 07:16:58 By the way, the trunk will build using the 10.5 SDK now. There's still some issue building with the 10.6 SDK. 07:17:37 rme: Thanks! 07:17:46 Also, what looks wrong with this? 07:17:47 (#/scheduledTimerWithInterval:target:selector: tick 0.166 w (@selector #/setNeedsDisplay: t)) 07:18:29 A selector is just a method name. You can't pass an argument with it. 07:19:42 Hmm 07:21:57 rme pasted "objc method" at http://paste.lisp.org/display/90561 07:22:02 something like that. 07:22:15 then you can say (@selector #/markForRedraw) 07:23:04 Ok 07:23:16 It doesn't seem to like scheduledTimerWithInterval:target:selector at all though 07:23:38 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Remote closed the connection] 07:23:50 oh wait, you forgot to provide a receiver--- ns:ns-timer should be the first arg 07:24:01 Adlai [n=adlai@unaffiliated/adlai] has joined #ccl 07:25:20 So, I don't have to instantiate a timer then.. 07:27:19 Not when you're calling a class method, no. 07:27:26 Ok 07:27:46 And isn't the method actually scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:? 07:29:51 Does it need to be called with all the arguments? 07:30:55 Yes, it does. No &optional in Objective-C. 07:32:28 Ohh 07:32:34 Ok, looking better 07:32:57 except it doesn't like (@selector ) 07:33:09 undefined function 07:35:20 (objc:@selector ...) 07:36:37 Is this because I don't have some sort of namespace included? 07:38:09 If you're just messing around, you might want to be in the CCL package. 07:41:06 Ok, hopefully last question: 07:41:12 "value 0.166 is not of the expected type DOUBLE-FLOAT" Erhm, huh? 07:43:53 On 64-bit platforms, most Cocoa functions want double-floats. On 32-bit platforms, they take single-floats. Apple hides this, sort of, with the CGFloat type. 07:44:05 Ohh 07:44:19 should just coercing it work? 07:44:45 You can do (float 0.166 ns:+cgfloat-zero+) to get the right thing, but I admit that it's gross. 07:45:41 yes, coerce it, write it as 0.166d0, whatever. 07:46:00 It's a hassle to keep the code portable between 32- and 64-bit platforms. 07:47:01 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Read error: 131 (Connection reset by peer)] 07:47:40 Adlai [n=adlai@unaffiliated/adlai] has joined #ccl 07:49:54 Cool, it all builds fine, I suspect I have a timer problem because it's being deallocated or something because of no reference, but you've been lots of help 07:51:56 good luck; feel free to send mail to openmcl-devel. 07:53:33 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Remote closed the connection] 07:54:33 Adlai [n=adlai@unaffiliated/adlai] has joined #ccl 07:54:36 Thanks! 07:55:07 -!- rme [n=rme@pool-70-104-115-69.chi.dsl-w.verizon.net] has quit [] 07:55:07 -!- rme [rme@clozure-9D931A0E.chi.dsl-w.verizon.net] has quit [Quit: rme] 17:04:10 ccl-logbot [n=ccl-logb@setf.clozure.com] has joined #ccl 17:04:10 17:04:10 -!- names: ccl-logbot rme sellout Arelius anRch milanj cvandusen billstclai segv palter lpolzer Modius_ bfulgham_ alms PuffTheMagic lisppaste5 @ChanServ mdc mdc_mobile wentbackward gbyers gz Fade sykopomp schaf chandler bfulgham 17:23:04 -!- anRch [n=markmill@nmd.sbx07269.sauguma.wayport.net] has quit [] 17:31:48 So, I've been trying to modify the simple-gl example to refresh often for animation.... it seems the NSTimer isn't firing, if anyone could give this a look I'd appreciate it. 17:31:51 Arelius pasted "Looped gl" at http://paste.lisp.org/display/90586 17:43:29 anRch [n=markmill@c-24-34-57-124.hsd1.ma.comcast.net] has joined #ccl 17:52:10 Adlai [n=adlai@unaffiliated/adlai] has joined #ccl 17:54:48 rme annotated #90586 "with some bug fixes" at http://paste.lisp.org/display/90586#1 17:55:52 1. the selector for an NSTimer has to have the signature - (void)timerFireMethod:(NSTimer*)theTimer 17:56:22 2. a NULL pointer is +null-ptr+ (and not nil, which means #$NO). 17:57:20 3. timers need a run loop to work. the gui:execute-in-gui runs the provided thunk on the main thread (which has a run loop) 18:03:55 -!- Adlai [n=adlai@unaffiliated/adlai] has quit [Read error: 54 (Connection reset by peer)] 18:12:53 -!- anRch [n=markmill@c-24-34-57-124.hsd1.ma.comcast.net] has quit [] 18:37:48 milanj- [n=milan@93.86.189.128] has joined #ccl 18:39:26 rme: Thanks again! 18:46:50 -!- milanj [n=milan@93.86.187.145] has quit [Read error: 110 (Connection timed out)] 19:16:44 -!- bfulgham_ [n=brent@adsl-69-234-133-58.dsl.irvnca.pacbell.net] has left #ccl 19:36:31 bfulgham_ [n=brent@adsl-69-234-133-58.dsl.irvnca.pacbell.net] has joined #ccl 19:39:30 Do I need to worry about avoiding recursion 19:39:44 like, how is clozure's Tail call optimizaton? 19:41:00 normal 19:41:05 Arelius: Nah, you're good. 19:41:10 Cool cool 19:41:32 Is that pretty common amongst the popular CLs these days? 19:41:42 Yep. 19:42:10 Cool 19:42:56 Also, how do I group expressions? Simular to the scheme (begin ...) form 19:43:27 Arelius: PROGN 19:43:31 THX 20:04:03 -!- Arelius [n=Indy@cpe-071-077-001-196.nc.res.rr.com] has quit [] 20:20:31 lispm [n=joswig@g224044029.adsl.alicedsl.de] has joined #ccl 20:31:44 -!- sellout [n=greg@static-72-85-235-154.bstnma.east.verizon.net] has quit [] 20:32:32 ziga` [n=ziga`@89.142.60.106] has joined #ccl 21:55:17 sellout [n=greg@c-24-128-48-180.hsd1.ma.comcast.net] has joined #ccl 22:03:57 Arelius [n=Indy@cpe-071-077-001-196.nc.res.rr.com] has joined #ccl 22:07:32 -!- ziga` [n=ziga`@89.142.60.106] has quit [Remote closed the connection] 22:22:07 -!- segv [n=mb@p4FC1B2BE.dip.t-dialin.net] has quit [Read error: 145 (Connection timed out)] 22:22:59 segv [n=mb@p4FC1FC7F.dip.t-dialin.net] has joined #ccl 22:36:08 -!- segv [n=mb@p4FC1FC7F.dip.t-dialin.net] has quit [Read error: 104 (Connection reset by peer)] 22:36:16 segv [n=mb@p4FC1FC7F.dip.t-dialin.net] has joined #ccl 22:37:43 -!- cvandusen [n=user@12.185.80.194] has quit ["ERC Version 5.3 (IRC client for Emacs)"] 22:40:13 anRch [n=markmill@nmd.sbx07258.melroma.wayport.net] has joined #ccl 22:40:54 gz__ [n=gz@209-6-40-245.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined #ccl 22:57:15 -!- rme [rme@clozure-9D931A0E.chi.dsl-w.verizon.net] has quit [Quit: rme] 22:57:15 -!- rme [n=rme@pool-70-104-115-69.chi.dsl-w.verizon.net] has quit [] 23:13:34 rme [n=rme@pool-70-104-115-69.chi.dsl-w.verizon.net] has joined #ccl 23:14:48 So what's with all of the # prefexed items? 23:16:35 http://ccl.clozure.com/ccl-documentation.html#Reading-Foreign-Names 23:24:32 How about it the context of #'(lambda...) is that related at all? 23:27:53 #'foo is a shorthand for (function foo) 23:38:06 -!- anRch [n=markmill@nmd.sbx07258.melroma.wayport.net] has quit [] 23:59:36 -!- lispm [n=joswig@g224044029.adsl.alicedsl.de] has quit [Remote closed the connection]