Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Is it possible to return structs with willReturn ? #16

Closed
duanefields opened this Issue Feb 11, 2013 · 15 comments

Comments

Projects
None yet
10 participants

I'm trying to mock some AVFoundation classes which return CMTime values.

I tried wrapping in an NSValue but no dice...

Owner

jonreid commented Feb 22, 2013

Not today, but I'm keeping this issue open.

Contributor

GWStuartClift commented Feb 22, 2013

If the NSValue AV Foundation Additions does not wrap the CMTime struct properly you should consider filing a bug with Apple.

Owner

jonreid commented Feb 22, 2013

The tricky thing with wrapping is something has to unwrap it…

Contributor

GWStuartClift commented Feb 22, 2013

I posted a solution using the totally wrong framework, dunce hat for me sorry!

shaioz commented Oct 22, 2013

Hey, just a quick question, why hasn't this pull request been accepted? I think it's very useful...
Is there something we can do to help?

Owner

jonreid commented Oct 24, 2013

Just busy with higher-demand features. I'll take this as an upvote :)

Contributor

StatusReport commented Dec 1, 2013

👍 from me too.

cakl commented Apr 6, 2014

any updates? 👍 from me too.

garnett commented Apr 24, 2014

👍 still not merged

salutis commented May 1, 2014

+1

+1
Please, please :)
I'd like to mock MKUserLocation and need it to return CLLocationCoordinate2D structs.

Owner

jonreid commented May 25, 2014

Sorry for the delay; #70 is top priority right now

+1
... since #70 is fixed now ;)

Owner

jonreid commented May 31, 2014

It's in!

@jonreid jonreid closed this May 31, 2014

Yippie! Great! Thank you! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment