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

object notifications other than touches* don't work

I am trying to attach notifications other than touchesBegan to a C4Shape and I am getting nothing. I have added a C4Shape and have tried to add other notifications at the bottom of setup. The problem is that the only notification that ever gets…
Adam Tindale
  • 1,239
  • 10
  • 26
1
vote
1 answer

What notifications do objects emit?

I am trying to receive notifications from objects in a sketch. I can option click classes to see lists of functions and properties. Where do I find a list (besides the source) or documentation of the notifications that objects emit? Specifically I…
Adam Tindale
  • 1,239
  • 10
  • 26
1
vote
1 answer

Notification casting causes compile error

I am making a generic function to handle the stopping and starting of different media types in C4. I tried the following method to be called but it seems that the play method conflicts with the play method in the AVPlayer play method when called in…
Adam Tindale
  • 1,239
  • 10
  • 26
1
vote
1 answer

Notification when animation ends in C4

When an animation completes in C4 does the object post a notification? I see endedNormally by C4Sample and reachedEnd by C4Movie. If I ask a shape to animate how can I get called when it completes? Update Here's a link to a gist with the solution…
Adam Tindale
  • 1,239
  • 10
  • 26
1
vote
1 answer

C4Shape Custom Subclass init issues?

I've asked another question regarding this project before and Travis was super helpful. Previous question Taking that advice into mind I'm trying to create a subclass for the C4Shape class, I added 2 properties (both floats) to the class for X and Y…
BardiaD
  • 119
  • 1
  • 9
1
vote
1 answer

Custom Animations for C4Image with CAKeyframeAnimation

I'm porting an existing iOS app to learn C4, and I need to use a custom animation to slide in an image with a 'bounce-in' effect from off-screen using a CAKeyframeAnimation. What is the best way for me to implement more complex animations like this…
mrseth01
  • 11
  • 1
1
vote
1 answer

Cross-fade or dissolve between two C4Images

How would I do some sort of animation or transition between two C4Images? I have a setup like this: C4Image * img1 = [[C4Image alloc] initWithRawData:rawData width:width height:height]; C4Image * img2 = [[C4Image alloc] initWithRawData:rawData…
Adam Tindale
  • 1,239
  • 10
  • 26
1
vote
1 answer

New classes in C4

I am making a new class in C4 and I am wondering what they should inherit from? The class is a helper classes and not visual, so should it inherit from C4Object instead of C4Control or NSObject (or some other default class)?
Adam Tindale
  • 1,239
  • 10
  • 26
1
vote
1 answer

C4Image raw pixels

I'm try to work with the raw pixels of an image and I'm running into some problems. First, calling .CGImage on a C4Image doesn't work so I have to use a UIImage to load the file. Second, the byte array seems to be the wrong length and the image…
Adam Tindale
  • 1,239
  • 10
  • 26
1
vote
1 answer

C4 option has disappeared in XCODE after upgrade

The C4 option for an application has disappeared. Does XCODE do background updating? Can I turn this off? It seems to have effected C4, is this correct? Thanks for any help.
Adam Tindale
  • 1,239
  • 10
  • 26
1
vote
1 answer

How to remove easing on animation in C4?

I have a few lines of words (labels) that have been added to a canvas. I am animating a shape so that it moves from outside of canvas to right under one of the labels. When I run the following code: -(void)showContent { …
Jessie.C
  • 13
  • 2
1
vote
1 answer

Scrolling and Image sizing Issues?

Downloaded the testScrollView file and can't get it to work right. https://github.com/C4Code It seems everything is in order for the most part, no major errors pop up or anything, but when I try to run it on the simulator it pops up in the bottom…
Jubblier
  • 11
  • 1
1
vote
1 answer

Incompatibility with Xcode 4.5?

The available C4 installer throws a generic "Installation Failed" error after attempting to install. Is it incompatible with 4.5, or is it simply the installer package that is incompatible? Edit: It fails on "Validating Packages".
Nick Heer
  • 1,553
  • 1
  • 10
  • 7
1
vote
1 answer

audio playback in c4 framework (c4iOS

new user to c4iOS framework. Working my way thru the tutorials/examples - wondering how one goes about playing back audio (as opposed to video, which is covered in the example texts). thanks in advance for answering my less-than-advance 'n00b'…
1
vote
1 answer

C4 Xcode projects never recognize ios devices

I'm finding that C4 projects, and only C4 projects, do not recognise connected iOS devices. The run menu only shows "iOS Device". This isn't a problem with any of my other Xcode projects. I'm using a iphone4s running ios 5.1.1, and i realize the…
v_y
  • 225
  • 2
  • 9