PSMenuItem — AI Tool by steipete

by steipete · AI Tool · ★ 179

Last updated: · Indexed by AgentSkillsHub · Auto-synced every 8h

About PSMenuItem

PSMenuItem ============= A block based UIMenuItem subclass. The inflexible @selector based approach in UIMenuItem was driving me crazy. I searched quite a while for a block-based UIMenuItem, but couldn't find one. So finally, I sat down and wrote my own implementation for my iOS PDF framework PSPDFKit. If you are as annoyed about the missing target/action pattern, as I am, you will love this. Also read the in-depth article on my website. How to use objective-c // one time-call needed to prepare the block based PSMenuItem handler. [PSMenuItem installMenuHandlerForObject:button]; PSMenuItem actionItem = [[PSMenuItem alloc] initWithTitle:@"Action 1" block:^{ [[[UIAlertView alloc] initWithTitle:@"Message" message:@"From a block!" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil] show]; }]; PSMenuItem submenuItem = [[PSMenuItem alloc] initWithTitle:@"Submenu..." block:^{ [UIMenuController sharedMenuController].menuItems = @[ [[PSMenuItem alloc] initWithTitle:@"Back..." block:^{ [self buttonPressed:button]; }], [[PSMenuItem alloc] initWithTitle:@"Sub 1" block:^{ NSLog(@"Sub 1 pressed"); }]]; [[UIMenuController sharedMenuController] setMenuVisible:YES animated:YES]; }];...

Quick Facts

Stars179
Forks13
LanguageObjective-C
CategoryAI Tool
Quality Score54.0232259444882/100
Open Issues3
Last Updated2015-06-24
Created2012-07-16
Est. Tokens~13k

PSMenuItem alternative? Top 3 similar tools

Looking for a PSMenuItem alternative? If you're comparing PSMenuItem with other ai tool tools, these 3 projects are the closest alternatives on Agent Skills Hub — ranked by topic overlap, star count, and community traction.

  • pivotnacci by blackarrowsec · ⭐ 718

    A tool to make socks connections through HTTP agents

  • redesigned-pancake by Sfedfcv · ⭐ 213

    Skip to content github / docs Code Issues 80 Pull requests 35 Discussions Actions Projects 2 Security Insights

  • maui-skills by davidortinau · ⭐ 117

    .NET MAUI skills for GitHub Copilot and Claude Code

More AI Tool Tools

Explore other popular ai tool tools:

View all AI Tool tools →

Popular Objective-C Agent Tools

Frequently Asked Questions

What is PSMenuItem?

PSMenuItem is A block based UIMenuItem subclass.. It is categorized as a AI Tool with 179 GitHub stars.

What programming language is PSMenuItem written in?

PSMenuItem is primarily written in Objective-C.

How do I install or use PSMenuItem?

You can find installation instructions and usage details in the PSMenuItem GitHub repository at github.com/steipete/PSMenuItem. The project has 179 stars and 13 forks, indicating an active community.

What are the best alternatives to PSMenuItem?

The top alternatives to PSMenuItem on Agent Skills Hub include pivotnacci, redesigned-pancake, maui-skills. Each offers a different approach to the same problem space — compare them side-by-side by stars, quality score, and community activity.

View on GitHub → Browse AI Tool tools