2016-02-17T00:43:36Z dustinm` quit (Quit: Leaving) 2016-02-17T00:55:21Z dustinm` joined #ccl 2016-02-17T02:01:17Z carvite joined #ccl 2016-02-17T07:10:56Z emaczen joined #ccl 2016-02-17T07:11:14Z emaczen: rme: How complete is the cocoa-bridge? 2016-02-17T07:13:37Z emaczen: I'm looking for the "constrainBoundsRect" method but I can't find it 2016-02-17T07:35:32Z phf: there's no such thing as cocoa-bridge 2016-02-17T07:37:09Z phf: there's an objc-bridge, which is the mechanism and then there's the *-headers folders that contain the signatures for various external libraries and frameworks, including most of cocoa 2016-02-17T07:39:09Z phf: judging by stock cocoa/C/populate.sh the signatures are generated using 10.8 sdk, where's constrainBoundsRect first appeared on 10.9 2016-02-17T07:39:44Z emaczen: phf: Have you ever centered a documentView inside a scrollView? 2016-02-17T07:41:42Z phf: no 2016-02-17T07:41:50Z emaczen: Should I add this method in myself? 2016-02-17T07:45:11Z phf: emaczen: so in order to add the method in the proper way you need to jump through a bunch of hoops. http://ccl.clozure.com/docs/ccl.html#the-interface-translator. essentially install ffigen (which is a pita to install), patch the populate.sh to look at correct sdk, generate. 2016-02-17T07:45:47Z phf: i've done this in the past, but every time i tried it it takes me a while to figure out how all the pieces fit together 2016-02-17T07:48:17Z phf: i think easiest thing to do is to just (objc:send rec :constrain-Bounds-Rect ...) 2016-02-17T07:49:09Z emaczen: Oh, I didn't know that it was still accessible 2016-02-17T07:49:53Z emaczen: I just have to use objc:define-obj-method then? 2016-02-17T07:50:36Z phf: emaczen: define-obj-method is for new methods 2016-02-17T07:51:14Z emaczen: So I can't override :constrain-bounds-rect ? 2016-02-17T07:52:22Z rme quit (Quit: rme) 2016-02-17T07:53:14Z phf: this is a bit outside of what i know. afaik you can still use send though it's deprecated. define-obj-method is also deprecated, replaced with objc:defmethod and it's used to define ~new~ methods rather then specify type signatures 2016-02-17T07:54:28Z phf: i'm sure there's a way to add an adhoc method signature at runtime, but i suspect it's not documented at all 2016-02-17T07:55:06Z emaczen: Can or can't you override methods with objc:define-objc-method? 2016-02-17T07:55:30Z emaczen: sounds like you are pretty sure that we can't 2016-02-17T07:59:56Z phf: actually i think you should be able to override a method 2016-02-17T08:00:51Z phf: i tried figuring it out, but i've not written ccl stuff in a while and i'm getting weirdest of errors, so perhaps someone else should chime in 2016-02-17T08:02:31Z emaczen: What is the purpose of these headers if we can just do (objc:send ... ) 2016-02-17T08:03:33Z phf: they do complete ffi, i.e. struct fields, constants, function signatures. objc is only a small subset 2016-02-17T08:04:37Z emaczen: phf: Thanks, I'll try in the morning when I wake up and post back 2016-02-17T08:04:50Z phf: sure. maybe you could attempt to get ffigen going 2016-02-17T08:06:13Z emaczen: I may even be able to just set some frame-sizes -- but there are a bunch of posts online about centering the documentView inside an NSScrollView 2016-02-17T08:11:35Z emaczen quit (Ping timeout: 240 seconds) 2016-02-17T09:11:43Z jackdaniel quit (Ping timeout: 240 seconds) 2016-02-17T09:21:39Z jackdaniel joined #ccl 2016-02-17T09:52:37Z faheem quit (*.net *.split) 2016-02-17T09:52:39Z fe[nl]ix quit (*.net *.split) 2016-02-17T09:52:39Z Blkt quit (*.net *.split) 2016-02-17T09:52:39Z pjb quit (*.net *.split) 2016-02-17T09:52:39Z kini quit (*.net *.split) 2016-02-17T09:52:40Z alms_clozure quit (*.net *.split) 2016-02-17T09:52:50Z fe[nl]ix joined #ccl 2016-02-17T09:52:50Z Blkt joined #ccl 2016-02-17T09:53:03Z pjb joined #ccl 2016-02-17T09:55:19Z kini joined #ccl 2016-02-17T09:59:52Z alms_clozure joined #ccl 2016-02-17T10:03:34Z fe[nl]ix quit (*.net *.split) 2016-02-17T10:03:34Z Blkt quit (*.net *.split) 2016-02-17T10:03:34Z pjb quit (*.net *.split) 2016-02-17T10:03:35Z dustinm` quit (*.net *.split) 2016-02-17T10:03:35Z jdz quit (*.net *.split) 2016-02-17T10:03:47Z Blkt joined #ccl 2016-02-17T10:03:57Z fe[nl]ix joined #ccl 2016-02-17T10:05:10Z jdz joined #ccl 2016-02-17T10:05:47Z dustinm` joined #ccl