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
0 answers

C# Syntax Knowledge - Abstract Relationships

This questions requires some previous knowledge about C4Sharp structures and relationships. I try to create abstract relationships with C4Sharp model, currently I can only specify strings and string variables to define the text+protocol for my…
1
vote
0 answers

SAP SuccessFactors: [COE0020]You do not have permission to view this template

Trying to POST GoalComment_1 entity in SAP SuccessFactors using the below curl request. curl --location --request POST 'https://apisalesdemo8.successfactors.com/odata/v2/GoalComment_1' --header 'Authorization: Bearer eyJ0b2tlbkNvbnRlbn...'…
1
vote
1 answer

Callback on view transition?

I'm hacking the multicanvas example. I want to modify it in order to trigger some event whenever a new target view is displayed, i.e. on completion of the transitionFromView method. I understand I could probably trigger some event from the…
jubl
  • 71
  • 4
1
vote
1 answer

C4 - Try to catch an exception when calling methods by NSString

I'm trying to make a presentation app and I've built some methods that put objects onto the canvas. What I'd like to do is use string concatenation to call the methods (each named after their slide index). When I call a method using runMethod it…
Adam Tindale
  • 1,239
  • 10
  • 26
1
vote
1 answer

Set statusbar to hidden in C4

Since iOS7 I have had a hard time hiding the status bar in apps. I've tried most of the tricks in another thread on SO and I am still unable to hide the status bar. How might I do this in C4?
Adam Tindale
  • 1,239
  • 10
  • 26
1
vote
2 answers

saving user defaults [iOS]

I saw a couple of examples but I cannot figure out what's going wrong when trying to save my text field input and reload it when restarting the app. I have something like this in my .m file (.h file only has a ); @implementation…
suMi
  • 1,536
  • 1
  • 17
  • 30
1
vote
1 answer

How to get a CAEmitterLayer from Canvas

I am trying to follow the tutorial about iOS particle systems here: http://www.raywenderlich.com/6063/uikit-particle-systems-in-ios-5-tutorial I am having trouble casting the self.canvas.layer in C4Workspace.m to a CAEmitterLayer. The code compiles…
Adam Tindale
  • 1,239
  • 10
  • 26
1
vote
1 answer

C4 template just disappeared

Yesterday there was a background update of my XCode (5.0.2) running and since the C4 template disappeared. Also reinstalling C4 fails. Any ideas what's up? How can I remove C4 installation completely in order to reinstall afterwards?
suMi
  • 1,536
  • 1
  • 17
  • 30
1
vote
1 answer

Accessing Canvas from Subclass?

I am working with a C4 app, and have created a subclass of C4Shape. I am having trouble accessing the canvas from within the subclass but I'm not sure how to check it, or how to get access to it from another object. This is the code I have so…
tailedmouse
  • 365
  • 3
  • 16
1
vote
1 answer

C4 stepper custom images

I'm trying to use my own images on a C4Stepper. I'm setting it up like this @implementation C4WorkSpace{ C4Stepper *theStepper; C4Image *stepperBackground; C4Image *stepperPlus; } -(void)setup { //load backgroundimage …
suMi
  • 1,536
  • 1
  • 17
  • 30
1
vote
1 answer

C4 save screen as C4Image

I tried adapting Travis' example he gave me last week here (C4 saving part of an image) to save the screen as a C4Image. I thought it should work like this: CGFloat scale = 5.0; //begin an image context CGSize rect=CGSizeMake(self.canvas.width,…
suMi
  • 1,536
  • 1
  • 17
  • 30
1
vote
1 answer

C4Camera example crashes on XCode 4.6 and XCode 5

The main example https://gist.github.com/C4Tutorials/5399635 crashes in the simulator with the following error: NSInvalidArgumentException', reason: '*** Can't add a nil AVCaptureInput' It does work when launched on hardware. Is this a known issue…
Adam Tindale
  • 1,239
  • 10
  • 26
1
vote
1 answer

C4 camera capture - problems when coming back to the view

I'm working on an app with several subviews. Currently I have 4 subviews. Here it the C4Workspace code to set them up //TakePhoto takePhoto= [TakePhoto new]; takePhoto.canvas.frame=CGRectMake(0, 0, self.canvas.width, self.canvas.height); …
suMi
  • 1,536
  • 1
  • 17
  • 30
1
vote
0 answers

How to get tap gesture on a C4Image in a C4ScrollView

I have several images loading in a scrollview. I set up the C4ScrollView like this: viewer = [C4ScrollView scrollView:CGRectMake(20, 30, 75, self.canvas.height - 50)]; viewer.contentSize = CGSizeMake(75, 1000); [self.canvas addSubview:viewer]; and…
Greg Debicki
  • 235
  • 2
  • 6
1
vote
1 answer

C4 passing image between subclasses

I'm trying to pass an image between 2 different views that are added as subclasses to the MainCanvasController. the image seems to get passed (it is shown, when printed to the Console) but it doesn't display anything... this is how I try to receive…
suMi
  • 1,536
  • 1
  • 17
  • 30