Questions tagged [c4]

The C4 Framework for iOS is a creative-coding framework to create "works of art."

The C4 Framework (a.k.a Cocoa For Artists), promotes software literacy in design, research and the arts. It is an attempt to make iOS programming, the Cocoa API, and the programming language Objective-C more accessible. It's focus is on the artistic side of application development and the production of new kinds of computer-aided art practice.

For more information see the C4 Project About Page.

98 questions
1
vote
1 answer

C4 navigating back and forth between subviews

I feel silly again but I don't manage to navigate back and forth between the subviews of my project. I can add as many subviews as I want as long as it just goes forward, but as soon as I want to come back to one of the views previously visited I…
suMi
  • 1,536
  • 1
  • 17
  • 30
1
vote
1 answer

C4 which shape was clicked?

I have added 42 shapes to the canvas of a C4 app. How can I determine which one of the shapes has been touched by a user? I add the shapes as follows: #import "C4Workspace.h" @implementation C4WorkSpace{ C4Shape *greyRect; } -(void)setup { …
suMi
  • 1,536
  • 1
  • 17
  • 30
1
vote
3 answers

C4 saving part of an image

Hei, I went through the example for saving images and afterwards I wanted to save only a part of the screen. I managed to save the part starting at the upper left corner of the image but I actually want to save the center of my screen. The magic to…
suMi
  • 1,536
  • 1
  • 17
  • 30
1
vote
1 answer

C4 passing data between views

Hei, I am using different subclasses for the different view in my application. for that I am now trying to pass a C4Image from one function to another. My code is as follows: in TakePhoto.m cropPhoto= [CropPhoto…
suMi
  • 1,536
  • 1
  • 17
  • 30
1
vote
1 answer

C4 capture camera image example

Hei, just starting to get into C4 and so far my experience has been great. I'm replicating the taking a photo with the camera-example at the moment and for some reason when I do everything as described in the tutorial…
suMi
  • 1,536
  • 1
  • 17
  • 30
1
vote
0 answers

Problems with building a multiCanvas

I'm trying to make a multiCanvas and everything seems right since xcode has not given me any errors. However, my build crashes, and I can't seem to find what the problem is. Can someone please review my code and see if there is something missing? If…
iviudbuivi
  • 11
  • 1
1
vote
1 answer

Can't download C4 documentation on Xcode 5

just got the xcode 5, but it does not support the third party documentation any more. so i download an app called " doc for xcode", it support to download the third party documentation and make it works on Xcode5, but i cannot find any source to…
Tian Zhou
  • 11
  • 2
1
vote
2 answers

C4Label cuts off displayed text

I'm working on a rather simple app that should display 2 words next to each other randomly from an array. Right now it's working except... Why is some text cut short? I'm guessing that whatever the number of chars the string "recipe" start with is…
1
vote
1 answer

Accessing multiple instances of one Object in Objective C

I am trying to access multiple instances of the same object, but I am not sure how to do so. I have tried adding them into an array but i am getting a weird error with it as well. Can somebody please help me out with this? I don't want to copy and…
tailedmouse
  • 365
  • 3
  • 16
1
vote
1 answer

Using Tumblr SDK with C4 - (linker error, duplicate symbols)

I'm using CocoaPods to install the tumblr sdk into a c4 project. Without adding any code into the c4workspace i get the following error: Ld…
Greg Debicki
  • 235
  • 2
  • 6
1
vote
1 answer

touchesBegan doesn't fire during animation and C4Shape loses reference after resize

I'm having two issues with the attached code. First, if I set the animation duration of shape to 1 second so that the shape is always moving then touchesBegan does not fire. When I look through the C4View.m it seems that…
Adam Tindale
  • 1,239
  • 10
  • 26
1
vote
1 answer

C4Movie not loading

I've been trying adding movie clip to the project but it just doesn't work. I've made sure that the *.mov file exists in the file directory. But if I try to add the inception clip at movieNamed:@"blahblah.mov", it works perfectly. Not sure if the…
lostinwent
  • 11
  • 1
1
vote
1 answer

Remove Object Instances in Objective C (C4iOs)

I am trying to remove an object instance, but not quite sure how to do it in Objective C? I would like to get rid of that ellipse I created put on the screen #import "C4WorkSpace.h" #import C4Shape * myshape; // [term]…
tailedmouse
  • 365
  • 3
  • 16
1
vote
1 answer

Drawing a sphere or other 3D shapes in C4?

In Processing if I wanted to draw a globe and put a texture on it to create a 3D world it would be rather trivial. I'll add the code from a project I did where i placed tweets on a globe as well as had another texture map on top which was clouds. …
chrisallick
  • 1,330
  • 17
  • 18
1
vote
1 answer

How do I disable/toggle gestures in C4ios?

Reading through the documentation here. I know how to successfully setup PAN gestures for a C4Object. How would I disable a PAN gesture though? Using... [object setUserInteractionEnabled:NO] ... disables all gestures including TAP events…