Code Monkey home page Code Monkey logo

Comments (10)

MtnViewJohn avatar MtnViewJohn commented on July 19, 2024 1

I will use the deprecated methods instead in the next release.

from context-free.

MtnViewJohn avatar MtnViewJohn commented on July 19, 2024 1

That would be great. Download it from here.

from context-free.

follower avatar follower commented on July 19, 2024

Thanks. Appreciate you being open to supporting older systems.

Happy to test a pre-release build if that's helpful.

from context-free.

follower avatar follower commented on July 19, 2024

Thanks for pre-release build to test. Currently taking a look at it.

I've managed to successfully generate an animation which is good, thanks.

There appears to be a couple of issues I encountered, one of which is:

  • Opening the "File" menu now generates an uncaught exception error (it didn't previously):
-[GView validateMenuItem:]: unrecognized selector sent to instance 0x7fd98bb9ad60
  • I think it's due to this code:

- (BOOL)validateMenuItem:(NSMenuItem *)anItem
{
SEL action = [anItem action];
if (action == @selector(enterFullscreen:))
return YES;
if (action == @selector(startRender:)
|| action == @selector(repeatRender:)
|| action == @selector(finishRender:)
|| action == @selector(stopRender:)
|| action == @selector(saveAsSVG:)
|| action == @selector(showHiresRenderSheet:)
|| action == @selector(showAnimationFrameSheet:)
|| action == @selector(showAnimationSheet:)
|| action == @selector(uploadToGallery:))
{
return [mGView validateMenuItem: anItem];
}
return [super validateMenuItem: anItem];
}

Full message:

Context Free[12390]: -[GView validateMenuItem:]: unrecognized selector sent to instance 0x7fd98bb9ad60
Context Free[12390]: An uncaught exception was raised
Context Free[12390]: -[GView validateMenuItem:]: unrecognized selector sent to instance 0x7fd98bb9ad60
Context Free[12390]: (
		0   CoreFoundation                      0x00007fff8d7f7b06 __exceptionPreprocess + 198
		1   libobjc.A.dylib                     0x00007fff889853f0 objc_exception_throw + 43
		2   CoreFoundation                      0x00007fff8d88e40a -[NSObject(NSObject) doesNotRecognizeSelector:] + 186
		3   CoreFoundation                      0x00007fff8d7e602e ___forwarding___ + 414
		4   CoreFoundation                      0x00007fff8d7e5e18 _CF_forwarding_prep_0 + 232
		5   AppKit                              0x00007fff86ff0215 -[NSMenu _enableItem:] + 770
		6   AppKit                              0x00007fff8704de92 -[NSCarbonMenuImpl _carbonUpdateStatusEvent:handlerCallRef:] + 512
		7   AppKit                              0x00007fff8704a165 NSSLMMenuEventHandler + 342
		8   HIToolbox                           0x00007fff842d0d1a _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1206
		9   HIToolbox                           0x00007fff842d01e9 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 410
		10  HIToolbox                           0x00007fff842e5fc9 SendEventToEventTarget + 40
		11  HIToolbox                           0x00007fff8431cca9 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 443
		12  HIToolbox                           0x00007fff842a330d UpdateHICommandStatusWithCachedEvent + 47
		13  HIToolbox                           0x00007fff842cc406 _ZN13HIApplication12EventHandlerEP25OpaqueEventHandlerCallRefP14OpaqueEventRefPv + 3366
		14  HIToolbox                           0x00007fff842d0d1a _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1206
		15  HIToolbox                           0x00007fff842d01e9 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 410
		16  HIToolbox                           0x00007fff842e5fc9 SendEventToEventTarget + 40
		17  HIToolbox                           0x00007fff842a2d08 _ZL15SendMenuOpeningP14MenuSelectDataP8MenuDatadjjP14__CFDictionaryhPh + 700
		18  HIToolbox                           0x00007fff842a26ca _ZL11DrawTheMenuP14MenuSelectDataPP9__CFArrayhPh + 195
		19  HIToolbox                           0x00007fff842a257b _ZL11MenuChangedP14MenuSelectDatahh + 609
		20  HIToolbox                           0x00007fff842a1c0b _ZL15TrackMenuCommonR14MenuSelectDataPh + 1188
		21  HIToolbox                           0x00007fff8429d806 _ZL14MenuSelectCoreP8MenuData5PointdjPP13OpaqueMenuRefPt + 424
		22  HIToolbox                           0x00007fff8429cec8 _HandleMenuSelection2 + 565
		23  AppKit                              0x00007fff86f098c6 _NSHandleCarbonMenuEvent + 245
		24  AppKit                              0x00007fff86e2ba9f _DPSNextEvent + 2073
		25  AppKit                              0x00007fff86e2adf2 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
		26  AppKit                              0x00007fff86e221a3 -[NSApplication run] + 517
		27  AppKit                              0x00007fff86dc6bd6 NSApplicationMain + 869
		28  Context Free                        0x000000010b6c21d4 Context Free + 8660
	)

from context-free.

follower avatar follower commented on July 19, 2024

Other issues I've encountered (unrelated to original issue, aside from being encountered now that animation is possible):

  • Animation player controller appears to have second & third controls overlapping:

animation-playback-control-bugs-screenshot

  • The "Current Playback Position" field in the middle isn't updated to zero when animation is regenerated (see above value of 1.0 when player head is at 0). (FWIW--particularly with this bug--but even in general--IMO it's not entirely obvious the middle value is the current playback position.)

from context-free.

follower avatar follower commented on July 19, 2024

Also:

  • Render > Animate... followed by Render > Animate a frame... doesn't display the selected rendered frame unless you run Render > Save Output... in-between. (Seems like the "render frame" method may not hide the "animation sheet"?)

from context-free.

follower avatar follower commented on July 19, 2024

I'm slightly confused about behaviour which I thought was a bug but appears to be the same in the previous release:

  • What is the intended purpose of the Render > Repeat Render menu item?

I had thought that repeating the render used the same seed/variation value again without increment but that doesn't seem to be the case.

Further investigation suggests the effect is related to editing of the list of rules:

  1. Create New file. (Variation value is prefixed with "next variation")
  2. Paste this: (Prefix: "next variation")
startshape START

shape START {
SQUARE []
}
  1. Render > Render (Prefix changes to: "this variation"; seed does not increment)
  2. Render > Repeat Render (Prefix is unchanged "this variation"; seed does increment.)
  3. Render > Render (Prefix is unchanged "this variation"; seed does increment.)
  4. Insert space at on startshape line. (Prefix changes to: "next variation"; seed does not increment)
  5. Render > Repeat Render (Prefix changes to: "this variation"; seed does not increment)
  6. Render > Repeat Render (Prefix is unchanged "this variation"; seed does increment.)

So, it seems currently "Repeat Render" only "repeats" the render with the same seed if the grammar has also been edited, otherwise it increments the seed and renders as "Render" does.

I think the assumption is that "Repeat Render" is only used on an edited grammar? Which makes sense on one level but also leads to inconsistent behaviour if (for whatever reason--I can't remember why I encountered this originally) "Repeat Render" is used...repeatedly. :) )

I would suggest "Repeat Render" never increments the seed as this behaviour seems more consistent and to me clearly differentiates between the two menu items.

[Thanks again for the test build to try, I look forward to playing more with the animation functionality.]

from context-free.

MtnViewJohn avatar MtnViewJohn commented on July 19, 2024

I have updated the dmg to fix your issues.

  1. File menu crash: I fixed CFDGDocument to call GView validateUserInterfaceItem: instead of the now missing GView validateMenuItem: method. Interestingly, this crash does not happen on High Sierra even though the selector is not present in GView.

  2. I don't know what is going on with the rewind button. It draws fine on Sierra/High Sierra. I can reproduce the issue by booting into Lion. It doesn't seem to affect functionality.

  3. The playback position field resets to 0.0 like it should and now stands out more.

  4. Animate-a-frame displays the frame even after a movie was playing

  5. Repeat Render was added to make it easier to explore variations when using Render with dimensions. It allows you to sequentially see what variations of a design look like when rendered to a specific size without tediously bringing up the Render with dimensions modal sheet and clicking OK.

I think a better approach would be to get rid if it and get rid of the modal Render with dimensions sheet. Instead, the Render button should have a Render with dimensions mode and the render size controls should be available in a non-modal manner.

from context-free.

MtnViewJohn avatar MtnViewJohn commented on July 19, 2024

Would you mind testing the Context Free 3.1 release candidate on OS X 10.7? I have lost my Lion boot setup and it costs $20 to make a new one. The link is https://www.contextfreeart.org/download/ContextFree3.1.dmg

from context-free.

MtnViewJohn avatar MtnViewJohn commented on July 19, 2024

Never mind, I found my Lion boot disk and tried it out. CF 3.1 runs fine on Mountain Lion and later but would require a lot of work to run on Lion.

from context-free.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.