Luke Tupper Consulting

Luke Tupper Consulting Blog

iPhone 3.0 UIButton in a UITableViewCell Weirdness

June25

I had a UIButton inside a UITableViewCell and these were being rendered with a black background once I had upgraded the project to iPhone OS 3.0. These table cells were being loaded from their own NIB file.

To stop the black background I needed to set the background of the TableViewCell to white (like you do on most cells after the upgrade), but for the button I also needed to set the UIButton to have the “Clear Context Before Drawing” setting checked.

The background should still be transparent to allow the corners of grouped tables to be shown.

Strange Cocoa Unit Testing Error

January14

I was receiving the following error while trying to run my unit tests from XCode:

Test Host –path to app– exited abnormally with code 138

For whatever reason, removing the tests from the Unit Tests target and re adding them to the target made the error go away. No other changes necessary.

posted under Cocoa, XCode | No Comments »

Adding unit tests to XCode 3 Project

December30

Here is the article that explains how to add unit testing to XCode 3 project.

http://developer.apple.com/mac/articles/tools/unittestingwithxcode3.html

If you search for unit testing with XCode you will find a lot of older articles pointing to XCode 2.x and how to install etc, etc. Now XCode 3 includes unit testing out of the box, so it is a lot simpler.

posted under Cocoa, XCode | No Comments »

decodeRetainedObject error when using Distributed Objects (DO)

December28

Came across an interesting problem. Trying to get distributed objects to pass a common class between processes.

To avoid versioning issues I had the class in a shared location so that both client and server could use it.

On the server I was seeing a decodeRetainedObject: class ‘bleh’ not loaded error in the console log. Took a while to figure out, but XCode doesn’t automatically assign a class that are dragged and dropped into a project to the main target. The files simply needed to be assigned to the requisite target and everything works fine.

posted under Cocoa, MacOSX, XCode | No Comments »

Cocoaheads Sparkle Screencast

September23

Recently I did a presentation at the Melbourne Cocoahead, and recorded the screencast.

Here is the first part, a 24 minute demonstration of adding sparkle to a cocoa application.

The next 2 parts will hopefully be added in the next couple of weeks.

posted under Cocoa | No Comments »

Code Coverage in XCode

August29

While working with the latest version of Duplicate Image Detector I was hoping to see the amount of code coverage in the unit tests.

I was happy to see that the code coverage tools are built into GCC, but disappointed to see that it isn’t the easiest to meaniful statistics added to part of the build process. There is a great post at SuperMegaUltraGroovy.Com listing how to get code coverage enabled for your unit tests.

The one step I couldn’t complete is the code that needs to be inserted into the the Run Script after your test case run code. The code was a bit managled by Safari/Wordpress and even sorting that out I still had some issues.

Well after a bit of hacking around I found this code works pretty well (you will need to edit the framework name):


# Run the unit tests in this test bundle.
"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests"
# Run gcov on the framework getting tested
if [ "${CONFIGURATION}" = 'Test' ];
then
FRAMEWORK_NAME=DID-V2.0
FRAMEWORK_OBJ_DIR=${OBJROOT}/${FRAMEWORK_NAME}.build/${CONFIGURATION}/${FRAMEWORK_NAME}.build/Objects-normal/${NATIVE_ARCH}
mkdir -p coverage
pushd coverage
echo ${OBJROOT}
echo ${FRAMEWORK_OBJ_DIR}
find ${FRAMEWORK_OBJ_DIR} -name *.o -exec gcov -b -o ${FRAMEWORK_OBJ_DIR} {} \;
popd
fi

This will produce the following information after the unit tests when you run your test:


File '/Users/tupps/Development/LTConsult/svn/DID/v2/ImageMatchManagement.m'
Lines executed:70.00% of 40
Branches executed:100.00% of 34
Taken at least once:64.71% of 34
Calls executed:86.21% of 29
/Users/tupps/Development/LTConsult/svn/DID/v2/ImageMatchManagement.m:creating 'ImageMatchManagement.m.gcov'

I hope this helps get a few people closer to running unit tests and looking at their code coverage on the mac. A nice utility like shark would be fantastic for working through these files and all of the information that is exported.
ass master
antique school desk
uma thurman nude
nude marykate and ashley olsen
ass to mouth jenna jameson
her first pet sex
granny grandson fucking
acer usb tablet boot
horny baby sitter
men swallow cum
xxx ass
old bitches tits
naked indian men
south korean tranny bars
chinese oriental dresses pics
glamour ladies nylons
hot latina porn
wet breasts
butt rub
oriental girls gallery
antique double sink bathroom vanities
tan stockings sex
mom daughter lesbian sex
women celebrities exposed
free gay military men
bare bottom spanking clips
nude family beach
hot hairy
paris hilton caught without panties
hentai hot toon sex
gothic adult webcam
dogs having sex with men
exploited black teen passwords
guys wearing nylons and panties
extreme hairy
large butt plugs
elephant penis
ebony lesbo
booty barker nextel cup crew chief
orthopedic foundation for animals
adult chat operator
bypass school firewall
1001 ways to eat my jizz
dd breasts
horny xxx
thong flashing gallery
smooth shaved
lesbian hentai dildo
moms fucking their sons
dog houses for large dogs
k-12 student safety
bree olsen interracial videos
studs cumming gay
girls who spread legs
gothic teen jizz
dick licking
tattoo ideas for girls
hottie college coed
granny topless
filipina manila sex
waningmoon gothic personals
hermione granger naked
enormous ebony dick
extreme geek
bi husband xxx
porn movie galleries
blond sex clips
panties fuck
hot blonde office sex
hidden boy cam
old hairy men
ebony tranny gape
black bitch galleries
ebony female ejaculation
girls on cam
free sexcams no e-mail
beach teen bikini pics
anti gag cream
olsen twincest
celebrity uncensored
military sexual assault
fuck dog
fingering cunts
nun sex
revolving grooming table dogs
birthday cake clip art
ebony huge tits
stocking porn galleries
free nurse video porn
girl suck a dick
articles on red heads
sexy grannies older women
micro bikinis model galleries
how to make penis bigger
secretary masturbation
skinny white pussy
twinks for cash tommy
girlfriends licking pussy ffm
milk nipple
masterbation parties
8 year old girl birthday party
12 year old girl in thongs
big tit chat rooms free
free webcam streaming chat
hairy pussy close up
the simpsons sex
office desk layout designs
gothic femdom
commercial large lazy susans
young nude boys
horny hitchhikers
mens cocks
old fuck
deep throat porn
bisexual femdom
zac efron nude
men shave body hair
hermione granger porn
free granny with girl gallery
heather deep throat
tranny pics
little girls
my friends hot mom porn site
big tits blowjobs
ghetto ass
her first huge dick
hot gothic nudes
mega cocks
penis pain
hot gothic nudes
double blower
big ass anal
brunettes in panties
female bodybuilder sex
free gangbang video
teen skinny dip
african tranny
sexy brunette sex
horny old man
naked horny babes
sexcam jasmin
hot brunette with huge titts
bi sex videos
fatty bbw
tight pussy close up
ass to mouth girls
lg m5500c-ba
tranny anal dildo
brazil tshirt womens
tera patrick cum
ebony girls fucking baseball bats
milf latinas
granny ass
hot sexy legs
home made porn facial
bbw gallery
girl masterbating in shower
yahh bitch yahh
flexible bondage
sexiest legs
tight long skirts
penis enormous
live cams adult
drunk blowjob
but im a cheerleader
symptoms of bi polar disorder
boot leg movies
kids fuck
kelly clarkson naked
harley chicks
big hairy cock
playboys book of lingerie
gay gag cum
free blowjob videos
enormous buttplug
gothic whores
black cum facials
milk my jizz
gangbang squad
extreme activities
gay giants
jack osbourne paparazzi pics
bestiality brazil
flex body building magazine
licking tit
fucking in stockings
bbw porn videos
1987 to 1003 ford mustang big block engine swap
first time deep throat
porn paysite passwords
pussy & ass closeups
free bbw pussy
tranny dick
granny fucks
teacher upskirt
cartoons fucking
gay ass fuck amateur free
clitoris closeup
funny nipples
cock pussy
gay sucking big cocks
dripping hairy pussy
grandma cum
xxx picture mary kay & ashley olsen
pussy on cam
fuck it eamon
hot gothic teen girls
yamaha rhino engine swap
filipina nudity
14 year old average penis size
horny old man
www. chicks wiyh dicks
interracial payperview porn
tattoos tribal art
big tits bbw porn
fake nude pictures of the olsen twins
student study team forms
petite lesbians oriental
big juicy butts
xtra large grannies

posted under Cocoa, Duplicate Image Detector, MacOSX, Useful Code | Comments Off

Dynamic NSTableView Part II

May17

Just another update NSTableView and creating it dynamically. If the NSTableView has its frame set then column resizing and scrolling seems to be screwed up.

By setting the frame of the scrollview and simply just calling init the NSTableView then the table seems to work correctly.

[tags]Cocoa[/tags]

Dynamic NSTableView

May16

If you need to add a NSTableView to a window or view in your code then it is not immediately obvious how to do this.

For example adding a button, all you need to do is initWithFrame for the button, then add the button to the main view.

However a NSTableView isn’t that simple. When you drag one out using interface builder you are getting a NSTableView wrapped up in a ScrollView. If you try to add the same way you would an NSButton you can’t see anything. What is needed is a ScrollView to wrap up the tableview.

I found this code which outlines how to setup a NSTableView. It is on the excellent cocoadev web site.

[tags]Cocoa, NSTableView, CocoaDev[/tags]

Enterprise Library Username and Password Connection String

May10

I have a number of projects that use Microsoft’s Enterprise Library, but usually they use Integrated Security to connect to the SQL Server. Yesterday I had a project which had to connect to a SQL Server via username and password and found it wasn’t the easiest to work out how the dataconfiguration file should be set up. This is what I came up with that worked:


<connectionstring name="Sql Connection String">
<parameters>
<parameter name="Data Source" value="Server" isSensitive="false" />
<parameter name="Initial Catalog" value="Database" isSensitive="false" />
<parameter name="Integrated Security" value="false" isSensitive="false" />
<parameter name="Connection Timeout" value="10" isSensitive="false" />
<parameter name="user" value="sa" isSensitive="false" />
<parameter name="password" value="sa" isSensitive="false" />
</parameters>
</connectionstring>

Version 2.0 of Duplicate Image Detector

May3

At present I am working on Version 2.0 of Duplicate Image Detector. At present it is nearly as quick as V1.0 for detecting duplicates, and it is now a matter of getting the user interface hooked up.

Version 2.0 will have the following goals:

  • Simplified User Interface
  • Easier access to advanced features
  • Same speed as version 1.0

At present the user interface is coming along nicely and I beleive that it will be easier to use. In initial testing version 2.0 is nearly as quick as version 1.0 but still needs a bit of tweaking.

Once version 2.0 is out the door the next focus will be on improving the performance of the application.

« Older Entries